Skip to content

Commit 06d510a

Browse files
author
SrikanteswaraRao Talluri
committed
CLOUDSTACK-6492: fixed localtime import and its usage in deployDataCenter.py
1 parent e9e8c65 commit 06d510a

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tools/marvin/marvin/deployDataCenter.py

Lines changed: 2 additions & 3 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, strftime
39+
from time import sleep, strftime, localtime
4040
from optparse import OptionParser
4141

4242

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

0 commit comments

Comments
 (0)