From dee72cbf6908fdc26a7b7527e35bf5aabbea0c42 Mon Sep 17 00:00:00 2001 From: Chmouel Boudjnah Date: Mon, 8 Apr 2013 10:02:20 +0200 Subject: [PATCH] hacking.py compliant. --- swsync/accounts.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/swsync/accounts.py b/swsync/accounts.py index b2e8e9f..0381839 100644 --- a/swsync/accounts.py +++ b/swsync/accounts.py @@ -14,16 +14,16 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. -import time import datetime import logging +import time -import swiftclient import dateutil.relativedelta import keystoneclient.v2_0.client +import swiftclient -from utils import get_config import swsync.containers +from utils import get_config class Accounts(object): @@ -33,7 +33,7 @@ class Accounts(object): self.container_cls = swsync.containers.Containers() def get_swift_auth(self, auth_url, tenant, user, password): - """Get swift connexion from args""" + """Get swift connexion from args.""" return swiftclient.client.Connection( auth_url, '%s:%s' % (tenant, user), @@ -41,7 +41,7 @@ class Accounts(object): auth_version=2).get_auth() def get_ks_auth_orig(self): - """Get keystone cnx from config""" + """Get keystone cnx from config.""" orig_auth_url = get_config('auth', 'keystone_origin') cfg = get_config('auth', 'keystone_origin_admin_credentials') (tenant_name, username, password) = cfg.split(':')