Skip to content

Public access to zhmcclient.Session password - #2305

Open
andy-maier wants to merge 1 commit into
masterfrom
andy/testutils-hmc-auth
Open

andy-maier wants to merge 1 commit into
masterfrom
andy/testutils-hmc-auth

Conversation

@andy-maier

Copy link
Copy Markdown
Member

For details, see the commit message.

Unit testcases have been added.

@andy-maier andy-maier self-assigned this Oct 15, 2026
@andy-maier andy-maier added this to the 1.27.0 milestone Oct 15, 2026
@andy-maier andy-maier linked an issue Oct 15, 2026 that may be closed by this pull request
@andy-maier
andy-maier force-pushed the andy/testutils-hmc-auth branch from f20fc44 to 38d43a6 Compare October 15, 2026 11:56
@coveralls

coveralls commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 79.833% (+0.02%) from 79.814% — andy/testutils-hmc-auth into master

@andy-maier
andy-maier force-pushed the andy/testutils-hmc-auth branch 2 times, most recently from b6cbe9c to 92306fb Compare October 15, 2026 12:19
Note that there are legitimate reasons to get the session password in a Python
program, including the zhmcclient package itself.

Details:

* Changed the protected '_password' attribute in the 'zhmcclient.Session' class
  to be available via a new public 'password' attribute, which is gettable and
  settable.

* Access via the protected attribute '_password' is still possible, but that
  attribute has been deprecated and getting or setting it now causes an according
  Python DeprecationWarning to be issued.

* Adjusted the naming rules in the pylint config file to allow for names that
  begin with two underscores. This was needed to support the internal
  '__password' attribute.

Signed-off-by: Andreas Maier <maiera@de.ibm.com>
@andy-maier
andy-maier force-pushed the andy/testutils-hmc-auth branch from 92306fb to 76967ab Compare October 15, 2026 12:36

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make session password accessible

3 participants