From 16d8bd480c86baf82950986cb1de444043148f11 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 8 Feb 2020 22:48:10 -0500 Subject: [PATCH] fix: pass appName along --- plugins/network/subcommands.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }