Skip to content

Commit 306b355

Browse files
kovukonoConor Tinch
andauthored
Added project ID to volume query when checking root disk size. (#90)
Co-authored-by: Conor Tinch <[email protected]>
1 parent f3e6e85 commit 306b355

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/modules/cs_instance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ def update_instance(self, instance, start_vm=True):
786786
root_disk_size_changed = False
787787

788788
if root_disk_size is not None:
789-
res = self.query_api('listVolumes', type='ROOT', virtualmachineid=instance['id'])
789+
res = self.query_api('listVolumes', type='ROOT', virtualmachineid=instance['id'], projectid=instance['projectid'])
790790
[volume] = res['volume']
791791

792792
size = volume['size'] >> 30

0 commit comments

Comments
 (0)