diff --git a/plugins/network/subcommands.go b/plugins/network/subcommands.go index 3bbe6952b..23803089a 100644 --- a/plugins/network/subcommands.go +++ b/plugins/network/subcommands.go @@ -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 }