examples/shared_file_system/basics.rb in fog-openstack-0.3.10 vs examples/shared_file_system/basics.rb in fog-openstack-1.0.0

- old
+ new

@@ -27,11 +27,11 @@ :openstack_project_name => ENV['OS_PROJECT_NAME'], :openstack_region => ENV['OS_REGION_NAME'], :connection_options => {:ssl_verify_peer => ENV['SSL_VERIFY'] != 'false'} } -network_service = Fog::Network::OpenStack.new(auth_options) -share_service = Fog::SharedFileSystem::OpenStack.new(auth_options) +network_service = Fog::OpenStack::Network.new(auth_options) +share_service = Fog::OpenStack::SharedFileSystem.new(auth_options) net = network_service.networks.first raise 'no network exists' if net.nil? puts "Create share network in #{net.name}"