Completed
Push — master ( 591bf0...c4b659 )
by Edward
01:58
created

ConsulListServicesAction   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 4
Duplicated Lines 0 %
Metric Value
dl 0
loc 4
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 3 1
1
from lib import action
2
3
4
class ConsulListServicesAction(action.ConsulBaseAction):
5
    def run(self):
6
        index, services = self.consul.catalog.services()
7
        return services
8