Permalink
Browse files

* bumped version to 0.1.1

* FIX knife brightbox server delete command
  • Loading branch information...
1 parent e884ff0 commit 010cc02d40003be9b253365dc9fea40b6d475cae @rubiojr rubiojr committed Aug 17, 2011
Showing with 5 additions and 6 deletions.
  1. +4 −5 lib/chef/knife/brightbox_server_delete.rb
  2. +1 −1 lib/knife-brightbox/version.rb
@@ -28,16 +28,15 @@ class BrightboxServerDelete < Knife
def run
@name_args.each do |instance_id|
-
server = connection.servers.get(instance_id)
-
+ if server.nil?
+ ui.error("Server instance #{instance_id} not found. Aborting.")
+ exit 1
+ end
msg("Instance ID", server.id.to_s)
- msg("Host ID", server.host_id)
msg("Name", server.name)
msg("Flavor", server.flavor.name)
msg("Image", server.image.name)
- msg("Public DNS Name", server.addresses["public"][0])
- msg("Private IP Address", server.addresses["private"][0])
puts "\n"
confirm("Do you really want to delete this server")
@@ -1,6 +1,6 @@
module Knife
module Brightbox
- VERSION = "0.1.0"
+ VERSION = "0.1.1"
MAJOR, MINOR, TINY = VERSION.split('.')
end
end

0 comments on commit 010cc02

Please sign in to comment.