class Chef::Knife::Cloud::OpenstackFloatingIpRelease

Public Instance Methods

execute_command() click to toggle source
# File lib/chef/knife/openstack_floating_ip_release.rb, line 32
def execute_command
  if @name_args[0]
    response = service.release_address(@name_args[0])
    if response && response.status == 202
      ui.info "Floating IP released successfully."
    end
  else
    ui.error "Please provide Floating IP to release."
    exit 1
  end
end