summaryrefslogtreecommitdiffstats
path: root/django/validationmanager/rados
diff options
context:
space:
mode:
authorEdan Binshtok <eb578m@intl.att.com>2017-11-19 11:42:55 +0200
committerEdan Binshtok <eb578m@intl.att.com>2017-11-19 11:43:15 +0200
commita9ef6f094a2bcf1fd7a0b7c2aaf814841db558ec (patch)
tree81a3f8436f9e6af07c3070c74f3a0543c2ca5eff /django/validationmanager/rados
parentc169d08d437ccb62fd79ade759077b874f00b1c3 (diff)
Pep8 more fixes
Update base files to pass pep8 strict standarts. Issue-ID: VVP-25 Change-Id: If9ef80abf7fbc33ea181dfc2eb73c27ddd6ddc3e Signed-off-by: Edan Binshtok <eb578m@intl.att.com>
Diffstat (limited to 'django/validationmanager/rados')
-rw-r--r--django/validationmanager/rados/__init__.py4
-rw-r--r--django/validationmanager/rados/rgwa_client.py29
-rw-r--r--django/validationmanager/rados/rgwa_client_factory.py4
3 files changed, 21 insertions, 16 deletions
diff --git a/django/validationmanager/rados/__init__.py b/django/validationmanager/rados/__init__.py
index 1726c13..16f81cb 100644
--- a/django/validationmanager/rados/__init__.py
+++ b/django/validationmanager/rados/__init__.py
@@ -1,5 +1,5 @@
-#
-# ============LICENSE_START==========================================
+#
+# ============LICENSE_START==========================================
# org.onap.vvp/engagementmgr
# ===================================================================
# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
diff --git a/django/validationmanager/rados/rgwa_client.py b/django/validationmanager/rados/rgwa_client.py
index 232b900..9b72290 100644
--- a/django/validationmanager/rados/rgwa_client.py
+++ b/django/validationmanager/rados/rgwa_client.py
@@ -1,5 +1,5 @@
-#
-# ============LICENSE_START==========================================
+#
+# ============LICENSE_START==========================================
# org.onap.vvp/engagementmgr
# ===================================================================
# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
@@ -94,11 +94,12 @@ class RGWAClient(object):
"""
valid_args = {
- 'quota_type': ['user', 'bucket'],
- 'key_type': ['s3', 'swift'],
- },
+ 'quota_type': ['user', 'bucket'],
+ 'key_type': ['s3', 'swift'],
+ },
- def __init__(self, base_url, access_key=None, secret_key=None, verify='/etc/ssl/certs/ca-certificates.crt',
+ def __init__(self, base_url, access_key=None, secret_key=None,
+ verify='/etc/ssl/certs/ca-certificates.crt',
return_raw_response=False):
"""
@@ -259,7 +260,8 @@ class RGWAClient(object):
# http://docs.ceph.com/docs/master/radosgw/adminops/
#
- def get_usage(self, uid=None, start=None, end=None, show_entries=False, show_summary=False):
+ def get_usage(self, uid=None, start=None, end=None, show_entries=False,
+ show_summary=False):
"""Request bandwidth usage information.
Note: this feature is disabled by default, can be enabled by setting
@@ -353,7 +355,8 @@ class RGWAClient(object):
purge_data=purge_data,
)
- def create_subuser(self, uid, subuser=None, secret_key=None, access_key=None,
+ def create_subuser(self, uid, subuser=None,
+ secret_key=None, access_key=None,
key_type=None, access=None, generate_secret=False):
"""Create a new subuser.
@@ -374,8 +377,8 @@ class RGWAClient(object):
generate_secret=generate_secret,
)
- def modify_subuser(self, uid, subuser, secret=None, key_type='swift', access=None,
- generate_secret=False):
+ def modify_subuser(self, uid, subuser, secret=None,
+ key_type='swift', access=None, generate_secret=False):
"""Modify an existing subuser."""
return self._request(
'post', 'user', 'subuser',
@@ -569,7 +572,8 @@ class RGWAClient(object):
def get_user_quota(self, uid):
return self.get_quota(uid=uid, quota_type='user')
- def set_user_quota(self, uid, max_size_kb=None, max_objects=None, enabled=None):
+ def set_user_quota(self, uid, max_size_kb=None,
+ max_objects=None, enabled=None):
return self.set_quota(
uid=uid,
quota_type='user',
@@ -581,7 +585,8 @@ class RGWAClient(object):
def get_user_bucket_quota(self, uid):
return self.get_quota(uid=uid, quota_type='bucket')
- def set_user_bucket_quota(self, uid, bucket, max_size_kb=None, max_objects=None,
+ def set_user_bucket_quota(self, uid, bucket,
+ max_size_kb=None, max_objects=None,
enabled=None):
return self.set_quota(
uid=uid,
diff --git a/django/validationmanager/rados/rgwa_client_factory.py b/django/validationmanager/rados/rgwa_client_factory.py
index ff29897..ba29b32 100644
--- a/django/validationmanager/rados/rgwa_client_factory.py
+++ b/django/validationmanager/rados/rgwa_client_factory.py
@@ -1,5 +1,5 @@
-#
-# ============LICENSE_START==========================================
+#
+# ============LICENSE_START==========================================
# org.onap.vvp/engagementmgr
# ===================================================================
# Copyright © 2017 AT&T Intellectual Property. All rights reserved.