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:
parent
b3d0bc1d2d
commit
75ee64f172
1 changed files with 8 additions and 0 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue