From 933d78e3a60cb66f1968417a269a81de9f488b6b Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 24 Apr 2008 11:38:06 +0000 Subject: [PATCH] add f9 to the list of known pldistros --- sliver_vs.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 -- 2.43.0