[pkg-eucalyptus-commits] [SCM] managing cloud instances for Eucalyptus branch, master, updated. 3.0.0-alpha3-257-g1da8e3a

Garrett Holmstrom gholms at fedoraproject.org
Sun Jun 16 02:30:58 UTC 2013


The following commit has been merged in the master branch:
commit 4a9a03d8ba7fdcf2f234cad05c38af6db22a7ac2
Author: Garrett Holmstrom <gholms at fedoraproject.org>
Date:   Tue Apr 2 14:42:59 2013 -0700

    Make GetMetricStatistics use UTC, not localtime
    
    Fixes TOOLS-289

diff --git a/euca2ools/commands/monitoring/getmetricstatistics.py b/euca2ools/commands/monitoring/getmetricstatistics.py
index db70a9d..fa90307 100644
--- a/euca2ools/commands/monitoring/getmetricstatistics.py
+++ b/euca2ools/commands/monitoring/getmetricstatistics.py
@@ -74,7 +74,7 @@ class GetMetricStatistics(CloudWatchRequest, TabifyingCommand):
                     'argument --period: value must be a multiple of 60')
 
     def main(self):
-        now = datetime.datetime.now()
+        now = datetime.datetime.utcnow()
         then = now - datetime.timedelta(hours=1)
         if not self.args.get('StartTime'):
             self.params['StartTime'] = then.strftime('%Y-%m-%dT%H:%M:%SZ')

-- 
managing cloud instances for Eucalyptus



More information about the pkg-eucalyptus-commits mailing list