Repository: cloudstack Updated Branches: refs/heads/master 2e95b5b70 -> 7df30611f
CLOUDSTACK-6492: fixed strftime import and its usage in deployDataCenter.py Signed-off-by: SrikanteswaraRao Talluri <tall...@apache.org> Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/7df30611 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/7df30611 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/7df30611 Branch: refs/heads/master Commit: 7df30611fed56cbaad291ad376bf49d86b408fec Parents: 2e95b5b Author: SrikanteswaraRao Talluri <tall...@apache.org> Authored: Thu Apr 24 13:00:29 2014 +0530 Committer: SrikanteswaraRao Talluri <tall...@apache.org> Committed: Thu Apr 24 13:00:29 2014 +0530 ---------------------------------------------------------------------- tools/marvin/marvin/deployDataCenter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/7df30611/tools/marvin/marvin/deployDataCenter.py ---------------------------------------------------------------------- diff --git a/tools/marvin/marvin/deployDataCenter.py b/tools/marvin/marvin/deployDataCenter.py index de0e11b..b241d15 100644 --- a/tools/marvin/marvin/deployDataCenter.py +++ b/tools/marvin/marvin/deployDataCenter.py @@ -36,7 +36,7 @@ from marvin.config.test_data import test_data from sys import exit import os import pickle -from time import sleep, time +from time import sleep, time, strftime from optparse import OptionParser @@ -67,7 +67,7 @@ class DeployDataCenters(object): if self.__logFolderPath: dc_file_path = self.__logFolderPath + "/dc_entries.obj" else: - ts = time.strftime("%b_%d_%Y_%H_%M_%S", + ts = strftime("%b_%d_%Y_%H_%M_%S", time.localtime()) dc_file_path = "dc_entries_" + str(ts) + ".obj" file_to_write = open(dc_file_path, 'w')