Skip to content

Commit 114d503

Browse files
authored
Merge pull request #9 from StackStorm-Exchange/linting
Linting fixes
2 parents 730a4e3 + a59f82a commit 114d503

16 files changed

+48
-54
lines changed

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## [0.6.1] 27 Nov 2017
4+
5+
- Linting fixes
6+
37
## [0.6.0] 16 Nov 2017
48

59
### Added the following API calls. (See https://python-consul.readthedocs.io for documentation)

actions/acl_list.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from lib import action
2-
31
import json
42

3+
from lib import action
4+
55

66
class ConsulAclListAction(action.ConsulBaseAction):
77
def run(self):
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44
class ConsulServiceDeregisterAction(action.ConsulBaseAction):
55
def run(self, service_id):
6-
return (True, self.consul.service.deregister(service_id=service_id))
6+
return (True, self.consul.agent.service.deregister(service_id=service_id))
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: service_deregister
22
runner_type: python-script
33
description: "Remove a service from the local agent."
44
enabled: true
5-
entry_point: "service_deregister.py"
5+
entry_point: "agent_service_deregister.py"
66
parameters:
77
service_id:
88
type: string
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
class ConsulServiceMaintenanceAction(action.ConsulBaseAction):
55
def run(self, service_id, enable, reason=None):
6-
return (True, self.consul.service.maintenance(
6+
return (True, self.consul.agent.service.maintenance(
77
service_id=service_id,
88
enable=enable,
99
reason=reason
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: service_maintenance
22
runner_type: python-script
33
description: "Put a given service into _maintenance mode_."
44
enabled: true
5-
entry_point: "service_maintenance.py"
5+
entry_point: "agent_service_maintenance.py"
66
parameters:
77
service_id:
88
type: string
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def run(self,
1111
check=None,
1212
token=None,
1313
enable_tag_override=False):
14-
return (True, self.consul.service.register(
14+
return (True, self.consul.agent.service.register(
1515
name=name,
1616
service_id=service_id,
1717
address=address,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: service_register
22
runner_type: python-script
33
description: "Add a new service to the local agent."
44
enabled: true
5-
entry_point: "service_register.py"
5+
entry_point: "agent_service_register.py"
66
parameters:
77
name:
88
type: string

actions/catalog_nodes.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@
22

33

44
class ConsulCatalogNodesAction(action.ConsulBaseAction):
5-
def run(
6-
self,
7-
index=None,
8-
wait=None,
9-
consistency=None,
10-
dc=None,
11-
near=None,
12-
token=None
13-
):
5+
def run(self,
6+
index=None,
7+
wait=None,
8+
consistency=None,
9+
dc=None,
10+
near=None,
11+
token=None):
1412

1513
return (True, self.consul.catalog.nodes(
1614
index=index,

actions/catalog_service.py

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,15 @@
22

33

44
class ConsulCatalogServiceAction(action.ConsulBaseAction):
5-
def run(
6-
self,
7-
service,
8-
index=None,
9-
wait=None,
10-
tag=None,
11-
consistency=None,
12-
dc=None,
13-
near=None,
14-
token=None
15-
):
5+
def run(self,
6+
service,
7+
index=None,
8+
wait=None,
9+
tag=None,
10+
consistency=None,
11+
dc=None,
12+
near=None,
13+
token=None):
1614

1715
return (True, self.consul.catalog.service(
1816
service=service,

0 commit comments

Comments
 (0)