mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 05:28:40 -05:00
Fix modify command bug
Hash is not a valid flag type so instead it will use string
This commit is contained in:
parent
40fd138214
commit
39a3d09766
1 changed files with 2 additions and 2 deletions
|
|
@ -96,13 +96,13 @@ class Vmfloaty
|
||||||
c.option '--url STRING', String, 'URL of vmpooler'
|
c.option '--url STRING', String, 'URL of vmpooler'
|
||||||
c.option '--token STRING', String, 'Token for vmpooler'
|
c.option '--token STRING', String, 'Token for vmpooler'
|
||||||
c.option '--lifetime INT', Integer, 'VM TTL (Integer, in hours)'
|
c.option '--lifetime INT', Integer, 'VM TTL (Integer, in hours)'
|
||||||
c.option '--tags HASH', Hash, 'free-form VM tagging'
|
c.option '--tags STRING', String, 'free-form VM tagging (json)'
|
||||||
c.action do |args, options|
|
c.action do |args, options|
|
||||||
verbose = options.verbose || config['verbose']
|
verbose = options.verbose || config['verbose']
|
||||||
url = options.url ||= config['url']
|
url = options.url ||= config['url']
|
||||||
hostname = args[0]
|
hostname = args[0]
|
||||||
lifetime = options.lifetime
|
lifetime = options.lifetime
|
||||||
tags = options.tags
|
tags = JSON.parse(options.tags)
|
||||||
token = options.token || config['token']
|
token = options.token || config['token']
|
||||||
|
|
||||||
res_body = Pooler.modify(verbose, url, hostname, token, lifetime, tags)
|
res_body = Pooler.modify(verbose, url, hostname, token, lifetime, tags)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue