Skip to content

Commit 7df3061

Browse files
author
SrikanteswaraRao Talluri
committed
CLOUDSTACK-6492: fixed strftime import and its usage in deployDataCenter.py
Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
1 parent 2e95b5b commit 7df3061

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/marvin/marvin/deployDataCenter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class DeleteDataCenters: Deletes a DataCenter based upon the dc cfg
3636
from sys import exit
3737
import os
3838
import pickle
39-
from time import sleep, time
39+
from time import sleep, time, strftime
4040
from optparse import OptionParser
4141

4242

@@ -67,7 +67,7 @@ def __persistDcConfig(self):
6767
if self.__logFolderPath:
6868
dc_file_path = self.__logFolderPath + "/dc_entries.obj"
6969
else:
70-
ts = time.strftime("%b_%d_%Y_%H_%M_%S",
70+
ts = strftime("%b_%d_%Y_%H_%M_%S",
7171
time.localtime())
7272
dc_file_path = "dc_entries_" + str(ts) + ".obj"
7373
file_to_write = open(dc_file_path, 'w')

0 commit comments

Comments
 (0)