From 0effe55c3158078c206d6f87224bdac6ecef74f5 Mon Sep 17 00:00:00 2001 From: Brian Cain Date: Wed, 14 Oct 2015 17:13:36 -0700 Subject: [PATCH] Add failure message if modify command did not work --- lib/vmfloaty.rb | 4 ++++ lib/vmfloaty/version.rb | 2 +- vmfloaty.gemspec | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/vmfloaty.rb b/lib/vmfloaty.rb index b3e8487..34d7586 100644 --- a/lib/vmfloaty.rb +++ b/lib/vmfloaty.rb @@ -121,6 +121,10 @@ class Vmfloaty modify_req = Pooler.modify(verbose, url, hostname, token, lifetime, tags) if modify_req["ok"] puts "Successfully modified vm #{hostname}." + else + STDERR.puts "Something went wrong with your request" + puts modify_req + exit 1 end end end diff --git a/lib/vmfloaty/version.rb b/lib/vmfloaty/version.rb index 654f74d..42c3842 100644 --- a/lib/vmfloaty/version.rb +++ b/lib/vmfloaty/version.rb @@ -1,6 +1,6 @@ class Version - @version = '0.2.10' + @version = '0.2.11' def self.get @version diff --git a/vmfloaty.gemspec b/vmfloaty.gemspec index 3fce3e8..2dd8030 100644 --- a/vmfloaty.gemspec +++ b/vmfloaty.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = 'vmfloaty' - s.version = '0.2.10' + s.version = '0.2.11' s.authors = ['Brian Cain'] s.email = ['brian.cain@puppetlabs.com'] s.license = 'Apache'