Skip to content

Commit

Permalink
kubevirt create vm: fix pvc_bound function
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed Feb 27, 2025
1 parent 23c8eb9 commit 930dcbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kvirt/providers/kubevirt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ def create(self, name, virttype=None, profile='', flavor=None, plan='kvirt', cpu
vm['spec']['dataVolumeTemplates'] = [dvt]
continue
_create_resource(kubectl, pvc, namespace, debug=self.debug)
bound = self.pvc_bound(pvcname, namespace, diskpool)
bound = self.pvc_bound(pvcname, namespace, pool)
if not bound:
error(f'timeout waiting for pvc {pvcname} to get bound')
return {'result': 'failure', 'reason': f'timeout waiting for pvc {pvcname} to get bound'}
Expand Down

0 comments on commit 930dcbc

Please sign in to comment.