Skip to content

Commit

Permalink
Add code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
gravesm committed May 5, 2021
1 parent 9b4e2c1 commit aab56b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/module_utils/client/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ def __get_default_cache_id(self):
return cache_id.encode('utf-8')

def __get_user(self):
# This is intended to provide a portable method for getting a username.
# It could, and maybe should, be replaced by getpass.getuser() but, due
# to a lack of portability testing the original code is being left in
# place.
if hasattr(os, 'getlogin'):
try:
user = os.getlogin()
Expand Down

0 comments on commit aab56b9

Please sign in to comment.