Allow for only a [configurable] tag set

This commit is contained in:
Scott Schneider 2015-06-30 10:57:49 -07:00
parent 3aa8389749
commit 6523062b62
3 changed files with 27 additions and 0 deletions

View file

@ -476,6 +476,10 @@ module Vmpooler
unless arg.is_a?(Hash)
failure = true
end
if config['allowed_tags']
failure = true if not (arg.keys - config['allowed_tags']).empty?
end
else
failure = true
end