mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-25 21:28:40 -05:00
Only set/parse tags if flag argument is called
This commit is contained in:
parent
28b145d762
commit
c28f015346
1 changed files with 1 additions and 1 deletions
|
|
@ -102,7 +102,7 @@ class Vmfloaty
|
|||
url = options.url ||= config['url']
|
||||
hostname = args[0]
|
||||
lifetime = options.lifetime
|
||||
tags = JSON.parse(options.tags)
|
||||
tags = JSON.parse(options.tags) if options.tags
|
||||
token = options.token || config['token']
|
||||
|
||||
res_body = Pooler.modify(verbose, url, hostname, token, lifetime, tags)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue