diff options
author | Ngo Quoc Cuong <cuongnq@vn.fujitsu.com> | 2017-05-06 01:45:49 +0700 |
---|---|---|
committer | Ngo Quoc Cuong <cuongnq@vn.fujitsu.com> | 2017-05-06 03:30:23 +0700 |
commit | f565b4797f4b335548a74998acf2231e47924d7c (patch) | |
tree | 673db5e810670865eecf2228a8a9417039f7bdd5 /designate/api | |
parent | 6a78cefd686927794d3302dc3fe27f849c868bde (diff) | |
download | designate-f565b4797f4b335548a74998acf2231e47924d7c.tar.gz |
Trivial fix pep8 and typos
PEP 8: missing whitespace around operator
PEP 8: line too long (> 79 characters)
Change-Id: I90af58cd8a374f362ef6db62080ae60a80713c7d
Diffstat (limited to 'designate/api')
-rw-r--r-- | designate/api/v2/controllers/pools.py | 12 | ||||
-rw-r--r-- | designate/api/v2/controllers/rest.py | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/designate/api/v2/controllers/pools.py b/designate/api/v2/controllers/pools.py index 72129060..f0e08656 100644 --- a/designate/api/v2/controllers/pools.py +++ b/designate/api/v2/controllers/pools.py @@ -68,8 +68,8 @@ class PoolsController(rest.RestController): def post_all(self): """Create a Pool""" - LOG.warning(_LW("Use of this API Method is DEPRICATED. This will have " - "unforseen side affects when used with the " + LOG.warning(_LW("Use of this API Method is DEPRECATED. This will have " + "unforeseen side affects when used with the " "designate-manage pool commands")) request = pecan.request @@ -100,8 +100,8 @@ class PoolsController(rest.RestController): def patch_one(self, pool_id): """Update the specific pool""" - LOG.warning(_LW("Use of this API Method is DEPRICATED. This will have " - "unforseen side affects when used with the " + LOG.warning(_LW("Use of this API Method is DEPRECATED. This will have " + "unforeseen side affects when used with the " "designate-manage pool commands")) request = pecan.request @@ -132,8 +132,8 @@ class PoolsController(rest.RestController): def delete_one(self, pool_id): """Delete the specific pool""" - LOG.warning(_LW("Use of this API Method is DEPRICATED. This will have " - "unforseen side affects when used with the " + LOG.warning(_LW("Use of this API Method is DEPRECATED. This will have " + "unforeseen side affects when used with the " "designate-manage pool commands")) request = pecan.request diff --git a/designate/api/v2/controllers/rest.py b/designate/api/v2/controllers/rest.py index 1ae8fe93..3ffc62aa 100644 --- a/designate/api/v2/controllers/rest.py +++ b/designate/api/v2/controllers/rest.py @@ -56,7 +56,7 @@ class RestController(pecan.rest.RestController): return pool_mgr_rpcapi.PoolManagerAPI.get_instance() def _apply_filter_params(self, params, accepted_filters, criterion): - invalid=[] + invalid = [] for k in params: if k in accepted_filters: criterion[k] = params[k].replace("*", "%") |