Example #1
0
 def _exchange_from_queue(self, queue_data):
     exchange = 'could not be determined'
     detailed_data = pulse_management.queue(vhost=queue_data['vhost'],
                                            queue=queue_data['name'])
     if detailed_data['incoming']:
         exchange = detailed_data['incoming'][0]['exchange']['name']
     return exchange
Example #2
0
 def _exchange_from_queue(self, queue_data):
     exchange = 'could not be determined'
     detailed_data = pulse_management.queue(vhost=queue_data['vhost'],
                                            queue=queue_data['name'])
     if detailed_data['incoming']:
         exchange = detailed_data['incoming'][0]['exchange']['name']
     return exchange