aboutsummaryrefslogtreecommitdiff
path: root/lava_dispatcher/actions/deploy/image.py
diff options
context:
space:
mode:
Diffstat (limited to 'lava_dispatcher/actions/deploy/image.py')
-rw-r--r--lava_dispatcher/actions/deploy/image.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/lava_dispatcher/actions/deploy/image.py b/lava_dispatcher/actions/deploy/image.py
index a9d5a12bc..5e8747538 100644
--- a/lava_dispatcher/actions/deploy/image.py
+++ b/lava_dispatcher/actions/deploy/image.py
@@ -71,7 +71,7 @@ class DeployQemuNfs(Deployment):
name = 'qemu-nfs'
def __init__(self, parent, parameters):
- super(DeployQemuNfs, self).__init__(parent)
+ super().__init__(parent)
self.action = DeployQemuNfsAction()
self.action.section = self.action_type
self.action.job = self.job
@@ -130,7 +130,7 @@ class ExtractNfsAction(Action):
summary = "NFS deployment for QEMU"
def __init__(self):
- super(ExtractNfsAction, self).__init__()
+ super().__init__()
self.param_key = 'nfsrootfs'
self.file_key = "nfsroot"
self.extra_compression = ['xz']
@@ -138,7 +138,7 @@ class ExtractNfsAction(Action):
self.use_lzma = False
def validate(self):
- super(ExtractNfsAction, self).validate()
+ super().validate()
if not self.valid:
return
if not self.parameters['images'].get(self.param_key, None): # idempotency
@@ -158,7 +158,7 @@ class ExtractNfsAction(Action):
def run(self, connection, max_end_time, args=None):
if not self.parameters['images'].get(self.param_key, None): # idempotency
return connection
- connection = super(ExtractNfsAction, self).run(connection, max_end_time, args)
+ connection = super().run(connection, max_end_time, args)
root = self.get_namespace_data(action='download-action', label=self.param_key, key='file')
root_dir = self.mkdtemp()
untar_file(root, root_dir)
@@ -203,7 +203,7 @@ class DeployImages(Deployment):
name = 'images'
def __init__(self, parent, parameters):
- super(DeployImages, self).__init__(parent)
+ super().__init__(parent)
self.action = DeployImagesAction()
self.action.section = self.action_type
self.action.job = self.job