#NEWLINE# def get_extra_attributes( self , o ) : #NEWLINE# #INDENT# ceilometer_services = CeilometerService . get_service_objects ( ) . filter ( id = o . provider_service . id ) #NEWLINE# if ( not ceilometer_services ) : #NEWLINE# #INDENT# raise 'No associated Ceilometer service' #NEWLINE# #UNINDENT# ceilometer_service = ceilometer_services [ 0 ] #NEWLINE# ceilometer_pub_sub_url = ceilometer_service . ceilometer_pub_sub_url #NEWLINE# if ( not ceilometer_pub_sub_url ) : #NEWLINE# #INDENT# ceilometer_pub_sub_url = '' #NEWLINE# #UNINDENT# instance = self . get_instance ( o ) #NEWLINE# try : #NEWLINE# #INDENT# full_setup = Config ( ) . observer_full_setup #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# full_setup = True #NEWLINE# #UNINDENT# fields = { #NEWLINE# #INDENT# 'unique_id' : o . id , #NEWLINE# 'allowed_tenant_ids' : o . tenant_list , #NEWLINE# 'auth_url' : instance . controller . auth_url , #NEWLINE# 'admin_user' : instance . controller . admin_user , #NEWLINE# 'admin_password' : instance . controller . admin_password , #NEWLINE# 'admin_tenant' : instance . controller . admin_tenant , #NEWLINE# 'ceilometer_pub_sub_url' : ceilometer_pub_sub_url , #NEWLINE# 'full_setup' : full_setup , #NEWLINE# #UNINDENT# } #NEWLINE# return fields