Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Adding support for GetLoginProfile request to IAM. Removing commented…
Browse files Browse the repository at this point in the history
… lines in connection.py. Fixes GoogleCode issue 532.
  • Loading branch information
garnaat committed Jul 1, 2011
1 parent 4de46af commit 7470e4b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 0 additions & 2 deletions boto/connection.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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.""" """Makes a request to the server, with stock multiple-retry logic."""
http_request = self.build_base_http_request(method, path, auth_path, http_request = self.build_base_http_request(method, path, auth_path,
{}, headers, data, host) {}, headers, data, host)
#http_request = self.fill_in_auth(http_request)
return self._mexe(http_request, sender, override_num_retries) return self._mexe(http_request, sender, override_num_retries)


def close(self): def close(self):
Expand Down Expand Up @@ -649,7 +648,6 @@ def make_request(self, action, params=None, path='/', verb='GET'):
if action: if action:
http_request.params['Action'] = action http_request.params['Action'] = action
http_request.params['Version'] = self.APIVersion http_request.params['Version'] = self.APIVersion
#http_request = self.fill_in_auth(http_request)
return self._mexe(http_request) return self._mexe(http_request)


def build_list_params(self, params, items, label): def build_list_params(self, params, items, label):
Expand Down
11 changes: 11 additions & 0 deletions boto/iam/connection.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -907,6 +907,17 @@ def resync_mfa_device(self, user_name, serial_number,
# #
# Login Profiles # 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): def create_login_profile(self, user_name, password):
""" """
Expand Down

0 comments on commit 7470e4b

Please sign in to comment.