From c28f0153469551f08bd867db43f1374488cd1d67 Mon Sep 17 00:00:00 2001 From: Brian Cain Date: Sat, 19 Sep 2015 15:11:17 -0700 Subject: [PATCH] Only set/parse tags if flag argument is called --- lib/vmfloaty.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vmfloaty.rb b/lib/vmfloaty.rb index 5a334fd..9abb07c 100644 --- a/lib/vmfloaty.rb +++ b/lib/vmfloaty.rb @@ -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)