lib/chef/knife/ionoscloud_datacenter_delete.rb in knife-ionoscloud-5.1.1 vs lib/chef/knife/ionoscloud_datacenter_delete.rb in knife-ionoscloud-5.1.2
- old
+ new
@@ -32,17 +32,11 @@
raise err unless err.code == 404
ui.error("Data center ID #{datacenter_id} not found. Skipping.")
next
end
- msg_pair('ID', datacenter.id)
- msg_pair('Name', datacenter.properties.name)
- msg_pair('Description', datacenter.properties.description)
- msg_pair('Location', datacenter.properties.location)
- msg_pair('Version', datacenter.properties.version)
-
+ print_datacenter(datacenter)
puts "\n"
-
begin
confirm('Do you really want to delete this data center')
rescue SystemExit => exc
next
end