diff options
| author | vladimir.p <vladimir@zadarastorage.com> | 2011-07-28 15:54:02 -0700 |
|---|---|---|
| committer | vladimir.p <vladimir@zadarastorage.com> | 2011-07-28 15:54:02 -0700 |
| commit | f4359a7789ae96a36aaab8f53aa3234d13b1725a (patch) | |
| tree | 8a11ebdfdd21768c5313ff9a7b32d138b53ff683 /nova/api | |
| parent | 16cbba0838e9a2ac712b91b103dc794b0edebd00 (diff) | |
returned vsa_manager, nova-manage arg and print changes
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/ec2/cloud.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nova/api/ec2/cloud.py b/nova/api/ec2/cloud.py index ca1fef51f..0a0644351 100644 --- a/nova/api/ec2/cloud.py +++ b/nova/api/ec2/cloud.py @@ -965,6 +965,10 @@ class CloudController(object): vsa['vcType'] = p_vsa['vsa_instance_type'].get('name', None) else: vsa['vcType'] = None + + vols = self.volume_api.get_all_by_vsa(context, p_vsa['id'], "to") + vsa['volCount'] = 0 if vols is None else len(vols) + return vsa def create_vsa(self, context, **kwargs): |
