lib/process/cloud/process/network.rb in lorj_cloud-0.1.11 vs lib/process/cloud/process/network.rb in lorj_cloud-0.1.12
- old
+ new
@@ -44,12 +44,12 @@
end
# Process Delete handler
def forj_delete_network(sCloudObj, hParams)
oProvider.delete(sCloudObj, hParams)
- rescue => e
- PrcLib.error("%s\n%s", e.message, e.backtrace.join("\n"))
+ rescue => e
+ PrcLib.error("%s\n%s", e.message, e.backtrace.join("\n"))
end
def forj_get_network(sCloudObj, sID, hParams)
oProvider.get(sCloudObj, sID, hParams)
rescue => e
@@ -65,14 +65,14 @@
:query_e => :controller_query,
:get_e => :forj_get_network,
:delete_e => :forj_delete_network
)
obj_needs :CloudObject, :network_connection
- obj_needs :data, :network_name, :for => [:create_e]
+ obj_needs :data, :network_name, :for => [:create_e]
obj_needs_optional
- obj_needs :data, :subnetwork_name, :for => [:create_e]
+ obj_needs :data, :subnetwork_name, :for => [:create_e]
# Any attribute are queriable
def_attribute :external # true if network is external or not.
end
@@ -85,12 +85,12 @@
name = hParams[:network_name]
begin
PrcLib.state("Creating network '%s'", name)
network = controller_create(sCloudObj)
PrcLib.info("Network '%s' created", network[:name])
- rescue => e
- PrcLib.fatal(1, "Unable to create network '%s'", name, e)
+ rescue => e
+ PrcLib.fatal(1, "Unable to create network '%s'", name, e)
end
network
end
# Search for a network from his name.
@@ -99,9 +99,9 @@
# nil or Provider Object
def find_network(sCloudObj, hParams)
query = { :name => hParams[:network_name] }
query_single(sCloudObj, query, hParams[:network_name])
- rescue => e
- PrcLib.error("%s\n%s", e.message, e.backtrace.join("\n"))
+ rescue => e
+ PrcLib.error("%s\n%s", e.message, e.backtrace.join("\n"))
end
end