Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Get sysname from launch

  • Loading branch information...
commit c32c8e8e4e8c6cb63d077899c6ba655e047732d9 1 parent e5601fa
@oldpatricka oldpatricka authored
Showing with 6 additions and 1 deletion.
  1. +2 −1  ceiclient/cli.py
  2. +4 −0 ceiclient/common.py
View
3  ceiclient/cli.py
@@ -87,6 +87,7 @@ def main():
amqp_settings['rabbitmq_exchange'] = opts.exchange
if opts.sysname:
amqp_settings['coi_services_system_name'] = opts.sysname
+ amqp_settings['dashi_sysname'] = opts.sysname
if opts.pyon:
conn = PyonCeiConnection(amqp_settings['rabbitmq_host'],
@@ -101,7 +102,7 @@ def main():
amqp_settings['rabbitmq_password'],
exchange=amqp_settings['rabbitmq_exchange'],
timeout=opts.timeout,
- sysname=amqp_settings.get('coi_services_system_name'))
+ sysname=amqp_settings.get('dashi_sysname'))
client = service.client(conn, dashi_name=opts.service_name)
command = service.commands[opts.command]
View
4 ceiclient/common.py
@@ -49,5 +49,9 @@ def load_cloudinitd_db(run_name):
vars['coi_services_system_name'] = basenode.get_attr_from_bag("coi_services_system_name")
except ConfigException:
vars['coi_services_system_name'] = None
+ try:
+ vars['dashi_sysname'] = basenode.get_attr_from_bag("dashi_sysname")
+ except ConfigException:
+ vars['dashi_sysname'] = None
return vars
Please sign in to comment.
Something went wrong with that request. Please try again.