~ubuntu-branches/ubuntu/quantal/nova/quantal-proposed

« back to all changes in this revision

Viewing changes to nova/console/rpcapi.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-08-16 14:04:11 UTC
  • mto: This revision was merged to the branch mainline in revision 84.
  • Revision ID: package-import@ubuntu.com-20120816140411-0mr4n241wmk30t9l
Tags: upstream-2012.2~f3
ImportĀ upstreamĀ versionĀ 2012.2~f3

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
        1.0 - Initial version.
34
34
    '''
35
35
 
36
 
    RPC_API_VERSION = '1.0'
 
36
    BASE_RPC_API_VERSION = '1.0'
37
37
 
38
38
    def __init__(self, topic=None):
39
39
        topic = topic if topic else FLAGS.console_topic
40
 
        super(ConsoleAPI, self).__init__(topic=topic,
41
 
                                         default_version=self.RPC_API_VERSION)
 
40
        super(ConsoleAPI, self).__init__(
 
41
                topic=topic,
 
42
                default_version=self.BASE_RPC_API_VERSION)
42
43
 
43
44
    def add_console(self, ctxt, instance_id):
44
45
        self.cast(ctxt, self.make_msg('add_console', instance_id=instance_id))