def bootstrap_container(name, dist=None, version=None):
 if (not dist):
  dist = __grains__['os'].lower()
  log.debug("nspawn.bootstrap: no dist provided, defaulting to '{0}'".format(dist))
 try:
  return globals()['_bootstrap_{0}'.format(dist)](name, version=version)
 except KeyError:
  raise CommandExecutionError('Unsupported distribution "{0}"'.format(dist))

def bootstrap_container ( name , dist = None , version = None ) : if ( not dist ) : dist = __grains__ [ 'os' ] . lower ( ) log . debug ( "nspawn.bootstrap: no dist provided, defaulting to '{0}'" . format ( dist ) ) try : return globals ( ) [ '_bootstrap_{0}' . format ( dist ) ] ( name , version = version ) except KeyError : raise CommandExecutionError ( 'Unsupported distribution "{0}"' . format ( dist ) )
bootstrap a container from package servers .