1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[cloudstack] tests, add snapshots_attributes to cloudstack provider config

This commit is contained in:
dm1try 2013-04-20 23:02:34 +03:00
parent b3d0bc1d2d
commit 75ee64f172

View file

@ -60,6 +60,14 @@ def compute_providers
end
end
end,
:snapshot_attributes => {:volume_id => "89198f7c-0245-aa1d-136a-c5f479ef9db7"}.tap do |hash|
[:volume_id, :domain_id, :policy_id].each do |k|
key = "cloudstack_#{k}".to_sym
if Fog.credentials[key]
hash[k]= Fog.credentials[key]
end
end
end,
:security_group_attributes => {:name => "cloudstack.sg.#{Time.now.to_i}"},
:security_group_rule_attributes => {
:cidr => '0.0.0.0/0',