From ae929eabe14d5bc060d80eb964e24f0afec6a65c Mon Sep 17 00:00:00 2001 From: Timur Nurlygayanov Date: Tue, 17 Mar 2015 10:44:58 +0300 Subject: [PATCH] Fixed pep8 --- rally-contexts/recover_cloud_context.py | 34 ++++++++++++------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/rally-contexts/recover_cloud_context.py b/rally-contexts/recover_cloud_context.py index 05fa60b..1696a9f 100644 --- a/rally-contexts/recover_cloud_context.py +++ b/rally-contexts/recover_cloud_context.py @@ -16,30 +16,30 @@ class CloudNodesContext(base.Context): "additionalProperties": False, "properties": {} } - - ACTIONS = { - "stop rabbitmq service": { - "do": "/etc/init.d/rabbitmq-server stop", - "undo": "/etc/init.d/rabbitmq-server start" - }, - "ban rabbitmq service with pcs": { - "do": "pcs resource ban rabbitmq", - "undo": "pcs resource clear rabbitmq" - } - } + + ACTIONS = { + "stop rabbitmq service": { + "do": "/etc/init.d/rabbitmq-server stop", + "undo": "/etc/init.d/rabbitmq-server start" + }, + "ban rabbitmq service with pcs": { + "do": "pcs resource ban rabbitmq", + "undo": "pcs resource clear rabbitmq" + } + } def setup(self): """This method is called before the task start""" self.context["actions"] = self.ACTIONS - # done_actions contains information about name of shaiker_id - # and action name which were executed, example: - # self.context["done_actions"] = [{"name": "node-1", "command": "ls"}] - self.context["done_actions"] = [] + # done_actions contains information about name of shaiker_id + # and action name which were executed, example: + # self.context["done_actions"] = [{"name": "node-1", "command": "ls"}] + self.context["done_actions"] = [] def cleanup(self): """This method is called after the task finish""" for action in self.context["done_actions"]: - ## we need to import shaiker somehow :) + ## we need to import shaiker somehow :) shaiker.run_command_on_node(action["node"], - ACTIONS[action["command"]]["undo"]) + ACTIONS[action["command"]]["undo"])