~ubuntu-branches/ubuntu/raring/nova/raring-proposed

« back to all changes in this revision

Viewing changes to nova/console/api.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2013-01-11 13:06:56 UTC
  • mto: This revision was merged to the branch mainline in revision 96.
  • Revision ID: package-import@ubuntu.com-20130111130656-z9mceux6qpkqomma
Tags: upstream-2013.1~g2
ImportĀ upstreamĀ versionĀ 2013.1~g2

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
from nova.openstack.common import uuidutils
26
26
 
27
27
CONF = cfg.CONF
28
 
CONF.import_opt('console_topic', 'nova.config')
 
28
CONF.import_opt('console_topic', 'nova.console.rpcapi')
29
29
 
30
30
 
31
31
class API(base.Base):
68
68
        else:
69
69
            instance = self.db.instance_get(context, instance_uuid)
70
70
        return instance
 
71
 
 
72
    def get_backdoor_port(self, context, host):
 
73
        topic = self._get_console_topic(context, host)
 
74
        rpcapi = console_rpcapi.ConsoleAPI(topic=topic)
 
75
        return rpcapi.get_backdoor_port(context, host)