Skip to content

Commit b52a641

Browse files
author
SrikanteswaraRao Talluri
committed
CLOUDSTACK-5449: fixed pep8 errors
Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
1 parent 7151ec6 commit b52a641

2 files changed

Lines changed: 19 additions & 10 deletions

File tree

‎tools/marvin/marvin/marvinInit.py‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,16 +118,18 @@ def __initLogging(self):
118118
log_config = self.__parsedConfig.logger
119119
if log_config is not None:
120120
if log_config.LogFolderPath is not None:
121-
self.logFolderPath = log_config.LogFolderPath + '/' + temp_path
121+
self.logFolderPath = log_config.LogFolderPath + '/' \
122+
+ temp_path
122123
else:
123124
self.logFolderPath = temp_path
124125
else:
125126
self.logFolderPath = temp_path
126127
else:
127128
self.logFolderPath = self.__logFolderPath + '/' + temp_path
128129
if os.path.exists(self.logFolderPath):
129-
self.logFolderPath = self.logFolderPath \
130-
+ ''.join(random.choice(string.ascii_uppercase + string.digits) for x in range(3))
130+
self.logFolderPath += ''.join(random.choice(
131+
string.ascii_uppercase +
132+
string.digits for x in range(3)))
131133
os.makedirs(self.logFolderPath)
132134
'''
133135
Log File Paths

‎tools/marvin/marvin/marvinPlugin.py‎

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,22 @@ def options(self, parser, env):
8080
Register command line options
8181
"""
8282
parser.add_option("--marvin-config", action="store",
83-
default=env.get('MARVIN_CONFIG', './datacenter.cfg'),
83+
default=env.get('MARVIN_CONFIG',
84+
'./datacenter.cfg'),
8485
dest="config_file",
8586
help="Marvin's configuration file where the " +
86-
"datacenter information is specified " +
87-
"[MARVIN_CONFIG]")
88-
parser.add_option("--load", action="store_true", default=False,
87+
"datacenter information is specified" +
88+
" [MARVIN_CONFIG]")
89+
parser.add_option("--load", action="store_true",
90+
default=False,
8991
dest="load",
9092
help="Only load the deployment configuration given")
91-
parser.add_option("--log-folder-path", action="store", default=None,
93+
parser.add_option("--log-folder-path",
94+
action="store",
95+
default=None,
9296
dest="log_folder_path",
93-
help="Path to the folder where log files will be stored")
97+
help="Path to the folder "
98+
"where log files will be stored")
9499
Plugin.options(self, parser, env)
95100

96101
def wantClass(self, cls):
@@ -169,7 +174,9 @@ def startMarvin(self):
169174
Creates a debugstream for tc debug log
170175
'''
171176
try:
172-
obj_marvininit = MarvinInit(self.configFile, self.loadFlag, self.logFolderPath)
177+
obj_marvininit = MarvinInit(self.configFile,
178+
self.loadFlag,
179+
self.logFolderPath)
173180
if obj_marvininit.init() == SUCCESS:
174181
self.testClient = obj_marvininit.getTestClient()
175182
self.tcRunLogger = obj_marvininit.getLogger()

0 commit comments

Comments
 (0)