Skip to content
Browse files

Adding support for GetLoginProfile request to IAM. Removing commented…

… lines in connection.py. Fixes GoogleCode issue 532.
  • Loading branch information...
1 parent 4de46af commit 7470e4b9490747d1885efc30f319f1849db59129 @garnaat garnaat committed Jul 1, 2011
Showing with 11 additions and 2 deletions.
  1. +0 −2 boto/connection.py
  2. +11 −0 boto/iam/connection.py
View
2 boto/connection.py
@@ -613,7 +613,6 @@ def make_request(self, method, path, headers=None, data='', host=None,
"""Makes a request to the server, with stock multiple-retry logic."""
http_request = self.build_base_http_request(method, path, auth_path,
{}, headers, data, host)
- #http_request = self.fill_in_auth(http_request)
return self._mexe(http_request, sender, override_num_retries)
def close(self):
@@ -649,7 +648,6 @@ def make_request(self, action, params=None, path='/', verb='GET'):
if action:
http_request.params['Action'] = action
http_request.params['Version'] = self.APIVersion
- #http_request = self.fill_in_auth(http_request)
return self._mexe(http_request)
def build_list_params(self, params, items, label):
View
11 boto/iam/connection.py
@@ -907,6 +907,17 @@ def resync_mfa_device(self, user_name, serial_number,
#
# Login Profiles
#
+
+ def get_login_profiles(self, user_name):
+ """
+ Retrieves the login profile for the specified user.
+
+ :type user_name: string
+ :param user_name: The username of the user
+
+ """
+ params = {'UserName' : user_name}
+ return self.get_response('GetLoginProfile', params)
def create_login_profile(self, user_name, password):
"""

0 comments on commit 7470e4b

Please sign in to comment.
Something went wrong with that request. Please try again.