Module: Chef::Knife::VcNetworkCommon
- Included in:
- VcNetworkShow, VcVappNetworkExternal, VcVappNetworkInternal, VcVmNetwork
- Defined in:
- lib/chef/knife/common/vc_network_common.rb
Instance Method Summary collapse
Instance Method Details
#get_network(network_arg) ⇒ Object
22 23 24 25 26 27 28 29 30 31 |
# File 'lib/chef/knife/common/vc_network_common.rb', line 22 def get_network(network_arg) network = nil org_name = locate_org_option org = connection.get_organization_by_name org_name network = connection.get_network_by_name org, network_arg raise ArgumentError, "Network #{network_arg} not found" unless network network end |