fix: pass appName along

This commit is contained in:
Jose Diaz-Gonzalez
2020-02-08 22:48:10 -05:00
parent e282c2dd7e
commit 16d8bd480c

View File

@@ -179,7 +179,7 @@ func CommandSet(appName string, property string, value string) {
common.LogFail("Invalid network name specified for attach")
}
if isConflictingPropertyValue(property, value) {
if isConflictingPropertyValue(appName, property, value) {
common.LogFail("Network name already associated with this app")
}
}
@@ -187,7 +187,7 @@ func CommandSet(appName string, property string, value string) {
common.CommandPropertySet("network", appName, property, value, DefaultProperties)
}
func isConflictingPropertyValue(property string, value string) bool {
func isConflictingPropertyValue(appName string, property string, value string) bool {
if value == "" {
return false
}