From: Thierry Parmentelat Date: Thu, 24 Apr 2008 11:38:06 +0000 (+0000) Subject: add f9 to the list of known pldistros X-Git-Tag: NodeManager-1.8-0~52 X-Git-Url: http://git.onelab.eu/?p=nodemanager.git;a=commitdiff_plain;h=933d78e3a60cb66f1968417a269a81de9f488b6b add f9 to the list of known pldistros --- diff --git a/sliver_vs.py b/sliver_vs.py index e7d86d8..ab9a716 100644 --- a/sliver_vs.py +++ b/sliver_vs.py @@ -89,12 +89,15 @@ class Sliver_VS(accounts.Account, vserver.VServer): # default default=file("/etc/planetlab/slicefamily").read().strip() (pldistro,fcdistro,arch) = default.split("-") + + known_archs = [ 'i386', 'x86_64' ] + known_fcdistros = [ 'f8', 'f9', 'centos5' ] # from the slice attribute: cut dashes and try to figure the meaning slice_wishes = vref.split("-") for wish in slice_wishes: - if wish == "i386" or wish == "x86_64": + if wish in known_archs: arch=wish - elif wish == "f8" or wish == "centos5" : + elif wish in known_fcdistros: fcdistro=wish else: pldistro=wish