labs-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1519342 - in /labs/panopticon/src/asf: cli.py utils/auth.py
Date Mon, 02 Sep 2013 05:38:34 GMT
Author: adc
Date: Mon Sep  2 05:38:34 2013
New Revision: 1519342

URL: http://svn.apache.org/r1519342
Log:
Mark parameter names

Modified:
    labs/panopticon/src/asf/cli.py
    labs/panopticon/src/asf/utils/auth.py

Modified: labs/panopticon/src/asf/cli.py
URL: http://svn.apache.org/viewvc/labs/panopticon/src/asf/cli.py?rev=1519342&r1=1519341&r2=1519342&view=diff
==============================================================================
--- labs/panopticon/src/asf/cli.py (original)
+++ labs/panopticon/src/asf/cli.py Mon Sep  2 05:38:34 2013
@@ -285,7 +285,7 @@ class CLI(object):
 
         if self.use_username_password_store is not None:
             if self.args.clear_store:
-                with load_config(AUTH_SECTIONS) as config:
+                with load_config(sections=AUTH_SECTIONS) as config:
                     config.remove_option(AUTH_SECTION, 'username')
             if not self.args.username:
                 self.args.username = get_username(use_store=self.use_username_password_store)

Modified: labs/panopticon/src/asf/utils/auth.py
URL: http://svn.apache.org/viewvc/labs/panopticon/src/asf/utils/auth.py?rev=1519342&r1=1519341&r2=1519342&view=diff
==============================================================================
--- labs/panopticon/src/asf/utils/auth.py (original)
+++ labs/panopticon/src/asf/utils/auth.py Mon Sep  2 05:38:34 2013
@@ -92,7 +92,7 @@ def initialize_keychain():
 
     keyring_backends = []
 
-    with load_config(AUTH_SECTIONS, AUTH_CONFIG_DEFAULTS) as config:
+    with load_config(sections=AUTH_SECTIONS, defaults=AUTH_CONFIG_DEFAULTS) as config:
 
         if config.get(KEYCHAIN_SECTION, 'crypted-keychain.enable'):
             keyring_backends.insert(0, CryptedFileKeyring())
@@ -113,7 +113,7 @@ def initialize_keychain():
 
 
 def clear_username_from_store():
-    with load_config(AUTH_SECTIONS, AUTH_CONFIG_DEFAULTS) as config:
+    with load_config(sections=AUTH_SECTIONS, defaults=AUTH_CONFIG_DEFAULTS) as config:
         config.remove(AUTH_SECTION, 'username')
 
 
@@ -299,7 +299,7 @@ def get_stored_credentials():
         :returns: username and password
         :rtype: tuple of str
     """
-    with load_config(AUTH_SECTIONS, AUTH_CONFIG_DEFAULTS) as config:
+    with load_config(sections=AUTH_SECTIONS, defaults=AUTH_CONFIG_DEFAULTS) as config:
         username = config.get(AUTH_SECTION, 'username')
         if not username:
             # if we don't have a username then we cannot lookup the password



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org


Mime
View raw message