Lines Matching refs:variants
1025 props=EmptyDict, refresh_allowed=True, variants=EmptyDict):
1043 'variants' is an optional dictionary of variant names and
1059 # Determine and add the default variants for the image.
1061 self.cfg.variants["variant.opensolaris.zone"] = \
1064 self.cfg.variants["variant.opensolaris.zone"] = \
1067 self.cfg.variants["variant.arch"] = \
1068 variants.get("variant.arch", platform.processor())
1070 # After setting up the default variants, add any overrides or
1071 # additional variants or facets specified.
1072 self.cfg.variants.update(variants)
1123 return self.cfg.variants["variant.opensolaris.zone"] == \
1127 return self.cfg.variants["variant.arch"]
1787 # ones for this image's variants.
1826 vardrate_excludes = [self.cfg.variants.allow_action]
1886 """update variants in image config"""
1889 self.cfg.variants.update(new_variants)
1998 for all variants
2002 set to False, then the variants and facets currently set in the
2006 # Normally elide other arch variants, facets
2011 excludes = [self.cfg.variants.allow_action,
2171 # variants changed, so don't remove those.
2425 defined variants & facets for the image, or an updated set if
2429 new_vars = self.cfg.variants.copy()
2433 var_call = self.cfg.variants.allow_action
2442 """ return a copy of the current image variants"""
2443 return self.cfg.variants.copy()
3945 variants=None):
3946 """Take a list of variants and/or facets and attempt to
3951 # compute dict of changing variants
3952 if variants:
3953 new = set(six.iteritems(variants))
3954 cur = set(six.iteritems(self.cfg.variants))
3955 variants = dict(new - cur)
3966 noexecute, new_variants=variants, new_facets=facets,