components/openstack/nova/files/solariszones/driver.py
changeset 4832 eef9ea54fabe
parent 4781 93d68a5ece25
child 4982 df1be607c345
equal deleted inserted replaced
4831:20f6eb6fe1fc 4832:eef9ea54fabe
  1369         with ZoneConfig(zone) as zc:
  1369         with ZoneConfig(zone) as zc:
  1370             LOG.debug("-" * 80)
  1370             LOG.debug("-" * 80)
  1371             LOG.debug(zc.zone.exportConfig(True))
  1371             LOG.debug(zc.zone.exportConfig(True))
  1372             LOG.debug("-" * 80)
  1372             LOG.debug("-" * 80)
  1373 
  1373 
  1374         options = ['-a ', image]
  1374         options = ['-a', image]
  1375 
  1375 
  1376         if os.listdir(sc_dir):
  1376         if os.listdir(sc_dir):
  1377             # the directory isn't empty so pass it along to install
  1377             # the directory isn't empty so pass it along to install
  1378             options.extend(['-c ', sc_dir])
  1378             options.extend(['-c', sc_dir])
  1379 
  1379 
  1380         try:
  1380         try:
  1381             LOG.debug(_("installing instance '%s' (%s)") %
  1381             LOG.debug(_("installing instance '%s' (%s)") %
  1382                       (name, instance['display_name']))
  1382                       (name, instance['display_name']))
  1383             zone.install(options=options)
  1383             zone.install(options=options)