mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 05:28:40 -05:00
Add failure message if modify command did not work
This commit is contained in:
parent
2153507098
commit
0effe55c31
3 changed files with 6 additions and 2 deletions
|
|
@ -121,6 +121,10 @@ class Vmfloaty
|
||||||
modify_req = Pooler.modify(verbose, url, hostname, token, lifetime, tags)
|
modify_req = Pooler.modify(verbose, url, hostname, token, lifetime, tags)
|
||||||
if modify_req["ok"]
|
if modify_req["ok"]
|
||||||
puts "Successfully modified vm #{hostname}."
|
puts "Successfully modified vm #{hostname}."
|
||||||
|
else
|
||||||
|
STDERR.puts "Something went wrong with your request"
|
||||||
|
puts modify_req
|
||||||
|
exit 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
class Version
|
class Version
|
||||||
@version = '0.2.10'
|
@version = '0.2.11'
|
||||||
|
|
||||||
def self.get
|
def self.get
|
||||||
@version
|
@version
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
Gem::Specification.new do |s|
|
Gem::Specification.new do |s|
|
||||||
s.name = 'vmfloaty'
|
s.name = 'vmfloaty'
|
||||||
s.version = '0.2.10'
|
s.version = '0.2.11'
|
||||||
s.authors = ['Brian Cain']
|
s.authors = ['Brian Cain']
|
||||||
s.email = ['brian.cain@puppetlabs.com']
|
s.email = ['brian.cain@puppetlabs.com']
|
||||||
s.license = 'Apache'
|
s.license = 'Apache'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue