Commit a152b160 by Dudás Ádám

vm: change variable name to more descriptive

parent 66a9ff8a
...@@ -653,11 +653,12 @@ class Instance(AclBase, VirtualMachineDescModel, TimeStampedModel): ...@@ -653,11 +653,12 @@ class Instance(AclBase, VirtualMachineDescModel, TimeStampedModel):
"""Renew virtual machine instance leases. """Renew virtual machine instance leases.
""" """
if base_activity is None: if base_activity is None:
act = instance_activity(code_suffix='renew', instance=self, act_ctx = instance_activity(code_suffix='renew', instance=self,
user=user) user=user)
else: else:
act = base_activity.sub_activity('renew') act_ctx = base_activity.sub_activity('renew')
with act:
with act_ctx:
if which not in ('suspend', 'delete', 'both'): if which not in ('suspend', 'delete', 'both'):
raise ValueError('No such expiration type.') raise ValueError('No such expiration type.')
self._do_renew(which) self._do_renew(which)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment