fix: correct GetResourceValue errors

This commit is contained in:
Jose Diaz-Gonzalez
2019-04-08 12:41:48 -04:00
parent 1683095233
commit 71be7026d7
2 changed files with 24 additions and 24 deletions

View File

@@ -1,7 +1,6 @@
package resource
import (
"errors"
"fmt"
"github.com/dokku/dokku/plugins/common"
)
@@ -169,20 +168,3 @@ func reportRequestType(appName string, processType string, requestType string) {
}
return
}
func propertyKey(processType string, requestType string, key string) string {
return fmt.Sprintf("%v.%v.%v", processType, requestType, key)
}
func getAppName(args []string) (string, error) {
if len(args) < 1 {
return "", errors.New("Please specify an app to run the command on")
}
appName := args[0]
if err := common.VerifyAppName(appName); err != nil {
return "", err
}
return appName, nil
}