Add failure message if modify command did not work

This commit is contained in:
Brian Cain 2015-10-14 17:13:36 -07:00
parent 2153507098
commit 0effe55c31
3 changed files with 6 additions and 2 deletions

View file

@ -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

View file

@ -1,6 +1,6 @@
class Version
@version = '0.2.10'
@version = '0.2.11'
def self.get
@version

View file

@ -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'