From 07b7d3f518aae7742403308b45d7d91bec79af5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= <valtri@civ.zcu.cz> Date: Tue, 22 Dec 2020 23:54:01 +0100 Subject: [PATCH] Python lint --- hadoop/plugin.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/hadoop/plugin.py b/hadoop/plugin.py index c9b52ed..091cd52 100644 --- a/hadoop/plugin.py +++ b/hadoop/plugin.py @@ -39,13 +39,17 @@ class ComponentHadoop: def commands(self, action): if action == 'init': return [ - ['ansible', '-i', './inventory', '-m', 'copy', '-a', 'src=site.pp dest=/root', 'all'], - ['ansible', '-i', './inventory', '-m', 'copy', '-a', 'src=site2.pp dest=/root', 'all'], + ['ansible', '-i', './inventory', '-m', 'copy', '-a', 'src=site.pp dest=/root', + 'all'], + ['ansible', '-i', './inventory', '-m', 'copy', '-a', 'src=site2.pp dest=/root', + 'all'], ] elif action == 'deployment': return [ - ['ansible', '-i', './inventory', '-m', 'shell', '-a', 'puppet apply --test /root/site.pp >> stage1.log 2>&1; echo $?', 'all'], - ['ansible', '-i', './inventory', '-m', 'shell', '-a', 'puppet apply --test /root/site2.pp >> stage2.log 2>&1; echo $?', 'all'], + ['ansible', '-i', './inventory', '-m', 'shell', '-a', + 'puppet apply --test /root/site.pp >> stage1.log 2>&1; echo $?', 'all'], + ['ansible', '-i', './inventory', '-m', 'shell', '-a', + 'puppet apply --test /root/site2.pp >> stage2.log 2>&1; echo $?', 'all'], ] -- GitLab