fix format string in epochparse()
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Thu, 22 Dec 2011 01:08:03 +0000 (20:08 -0500)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Thu, 22 Dec 2011 01:08:03 +0000 (20:08 -0500)
sfa/plc/plaggregate.py
sfa/util/sfatime.py

index 5c0606c..7e51c40 100644 (file)
@@ -187,8 +187,8 @@ class PlAggregate:
             if not slice:     
                 rspec_node['boot_state'] = node['boot_state']
             rspec_node['exclusive'] = 'false'
-            rspec_node['hardware_types']= [HardwareType({'name': 'plab-pc'}),
-                                           HardwareType({'name': 'pc'})]
+            rspec_node['hardware_types'] = [HardwareType({'name': 'plab-pc'}),
+                                            HardwareType({'name': 'pc'})]
             # only doing this because protogeni rspec needs
             # to advertise available initscripts 
             rspec_node['pl_initscripts'] = pl_initscripts.values()
index c5c6a55..a1a4bf0 100644 (file)
@@ -26,4 +26,4 @@ For safety this can also handle inputs that are either timestamps, or datetimes
         logger.error("Unexpected type in utcparse [%s]"%type(input))
 
 def epochparse(input):
-    return time.strftime("%Y-%d-%m-T%H:%M:%SZ", time.localtime(input)) 
+    return time.strftime("%Y-%d-%mT%H:%M:%SZ", time.localtime(input))