Esempio n. 1
0
 def _latestFedoraVariant(self):
     ret = None
     for var in osdict.sort_helper(osdict.OS_TYPES["linux"]["variants"]):
         if var.startswith("fedora"):
             # Last fedora* occurence should be the newest
             ret = var
     return ret
Esempio n. 2
0
 def _latestFedoraVariant(self):
     ret = None
     for var in osdict.sort_helper(osdict.OS_TYPES["linux"]["variants"]):
         if var.startswith("fedora"):
             # Last fedora* occurence should be the newest
             ret = var
     return ret
Esempio n. 3
0
def _check_osvariant_valid(os_type, os_variant):
    return bool(_check_ostype_valid(os_type) and os_variant in osdict.sort_helper(osdict.OS_TYPES[os_type]["variants"]))
Esempio n. 4
0
def _check_ostype_valid(os_type):
    return bool(os_type in osdict.sort_helper(osdict.OS_TYPES))
Esempio n. 5
0
def _check_osvariant_valid(os_type, os_variant):
    return bool(
        _check_ostype_valid(os_type) and os_variant in osdict.sort_helper(
            osdict.OS_TYPES[os_type]["variants"]))
Esempio n. 6
0
def _check_ostype_valid(os_type):
    return bool(os_type in osdict.sort_helper(osdict.OS_TYPES))
Esempio n. 7
0
 def list_os_variants(type):
     return osdict.sort_helper(Guest._OS_TYPES[type]["variants"])
Esempio n. 8
0
 def list_os_types():
     return osdict.sort_helper(Guest._OS_TYPES)
Esempio n. 9
0
 def list_os_variants(type):
     return osdict.sort_helper(Guest._OS_TYPES[type]["variants"])
Esempio n. 10
0
 def list_os_types():
     return osdict.sort_helper(Guest._OS_TYPES)