lib/process/cloud/process/subnetwork.rb in lorj_cloud-0.1.11 vs lib/process/cloud/process/subnetwork.rb in lorj_cloud-0.1.12
- old
+ new
@@ -56,12 +56,12 @@
name = hParams[:subnetwork_name]
PrcLib.state("Creating subnet '%s'", name)
begin
subnet = controller_create(sCloudObj, hParams)
PrcLib.info("Subnet '%s' created.", subnet[:name])
- rescue => e
- PrcLib.fatal(1, "Unable to create '%s' subnet.", name, e)
+ rescue => e
+ PrcLib.fatal(1, "Unable to create '%s' subnet.", name, e)
end
subnet
end
def delete_subnet
@@ -70,11 +70,11 @@
PrcLib.state("Deleting subnet '%s'", sub_net_obj.name)
begin
provider_delete_subnetwork(net_conn_obj, sub_net_obj)
net_conn_obj.subnets.get(sub_net_obj.id).destroy
- 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
def query_subnet(sCloudObj, hParams)
PrcLib.state('Searching for sub-network attached to '\