~justin-fathomdb/nova/restart-instance

« back to all changes in this revision

Viewing changes to nova/virt/libvirt_conn.py

  • Committer: Justin Santa Barbara
  • Date: 2011-03-24 03:58:05 UTC
  • Revision ID: justin@fathomdb.com-20110324035805-w80wxjc4xbmwbznt
Ah... createWithFlags is probably on the domain object

Show diffs side-by-side

added added

removed removed

Lines of Context:
1327
1327
            # it and then launch it.
1328
1328
            domain = self._conn.defineXML(xml)
1329
1329
 
1330
 
            # NOTE(justinsb): createWithFlags isn't in the Python binding
1331
 
            #self._conn.createWithFlags(domain, launch_flags)
1332
 
 
1333
 
            # NOTE(justinsb): fallback to create, check no flags
1334
 
            assert launch_flags == 0, "launch_flags must be == 0"
1335
 
            self._conn.create(domain)
 
1330
            domain.createWithFlags(launch_flags)
1336
1331
        else:
1337
1332
            # NOTE(justinsb): createXML call creates a transient domain
1338
1333
            domain = self._conn.createXML(xml, launch_flags)