Commit 12984c85 authored by Brian Grant's avatar Brian Grant

Merge pull request #6984 from smarterclayton/remove_duplicates

Don't insert duplicate arguments in SplitResourceArgs
parents 4833578a 4b85c086
...@@ -609,6 +609,7 @@ func SplitResourceArgument(arg string) []string { ...@@ -609,6 +609,7 @@ func SplitResourceArgument(arg string) []string {
if set.Has(s) { if set.Has(s) {
continue continue
} }
set.Insert(s)
out = append(out, s) out = append(out, s)
} }
return out return out
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment