~le-charmers/charms/trusty/rabbitmq-server/trunk

« back to all changes in this revision

Viewing changes to hooks/rabbitmq_server_relations.py

  • Committer: james.page at ubuntu
  • Date: 2015-03-11 12:27:38 UTC
  • Revision ID: james.page@ubuntu.com-20150311122738-mlxky0fff3vowal1
Store local nagios username/password on disk onlu

Show diffs side-by-side

added added

removed removed

Lines of Context:
491
491
    current_unit = local_unit().replace('/', '-')
492
492
    user = 'nagios-%s' % current_unit
493
493
    vhost = 'nagios-%s' % current_unit
494
 
    password = rabbit.get_rabbit_password(user)
 
494
    password = rabbit.get_rabbit_password(username=user,
 
495
                                          local=True)
495
496
 
496
497
    if host_context:
497
498
        myunit = "%s:%s" % (host_context, local_unit())