From: S.Çağlar Onur Date: Mon, 23 Aug 2010 20:15:30 +0000 (-0400) Subject: hardcode planetlab-f8-i386 as a vref until migration from 4.3 to 5.0 completes X-Git-Tag: nodemanager-2.0-18~1 X-Git-Url: http://git.onelab.eu/?p=nodemanager.git;a=commitdiff_plain;h=25f0e80cb3dfc0914a143aca030bd24fea7b619f hardcode planetlab-f8-i386 as a vref until migration from 4.3 to 5.0 completes --- diff --git a/sliver_vs.py b/sliver_vs.py index ea0d21d..ed81f94 100644 --- a/sliver_vs.py +++ b/sliver_vs.py @@ -80,7 +80,10 @@ class Sliver_VS(accounts.Account, vserver.VServer): logger.verbose('sliver_vs: %s: create'%name) if vref is None: logger.log("sliver_vs: %s: ERROR - no vref attached, this is unexpected"%(name)) - return + # band-aid for short period as old API doesn't have GetSliceFamily function + vref = "planetlab-f8-i386" + #return + # used to look in /etc/planetlab/family, # now relies on the 'GetSliceFamily' extra attribute in GetSlivers() # which for legacy is still exposed here as the 'vref' key