Skip to content

Commit

Permalink
Merge pull request #272 from mshriver/fix-rhevm-storage
Browse files Browse the repository at this point in the history
Fix rhevm storage_domains reference
  • Loading branch information
mshriver authored Jun 7, 2018
2 parents 2fc7055 + 6303364 commit 899f0bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wrapanapi/rhevm.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,13 +494,13 @@ def does_template_exist(self, template_name):
except ItemNotFound:
return False

def delete_template(self, template_name):
def delete_template(self, template_name, timeout=120):
template_service = self._get_template_service(template_name)
self._wait_template_ok(template_name)
template_service.remove()
wait_for(
lambda: not self.does_template_exist(template_name),
num_sec=15 * 60, delay=20)
num_sec=timeout, delay=5)

def vm_hardware_configuration(self, vm_name):
vm = self._get_vm(vm_name)
Expand Down Expand Up @@ -756,7 +756,7 @@ def _get_attached_storage_domain_service(self, datacenter_id, storage_domain_id)
def change_storage_domain_state(self, state, storage_domain_name):
dcs = self._data_centers_service.list()
for dc in dcs:
storage_domains = self.api.follow_link(dc.storagedomains)
storage_domains = self.api.follow_link(dc.storage_domains)
for domain in storage_domains:
if domain.name == storage_domain_name:
asds = self._get_attached_storage_domain_service(dc.id, domain.id)
Expand Down

0 comments on commit 899f0bb

Please sign in to comment.