diff --git a/hadoop/plugin.py b/hadoop/plugin.py
index 091cd5205645feee06a992e2fbf5d7079b4e8a8e..c018b328c7bffc5f860fc3234fefd2f980afdc76 100644
--- a/hadoop/plugin.py
+++ b/hadoop/plugin.py
@@ -37,15 +37,12 @@ class ComponentHadoop:
                         f.write(site)
 
     def commands(self, action):
-        if action == 'init':
+        if action == 'deployment':
             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'],
-            ]
-        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',