[pykickstart] Two new options for the rootpw command

Vratislav Podzimek vpodzime at redhat.com
Wed May 15 12:29:20 UTC 2013


This patch adds two new options: --frozen and --allow-changes for the rootpw
command. Both determine the policy of changing the password from the kickstart
in the UI. --frozen means that the password cannot be changed at all,
--allow-changes means that the password can be changed without any other
actions. When using none of them retyping the password should be required to
enable changes.

The patch seems to add a lot of code, but it really just streamlines the code
from the previous versions of the command. The code and tests were adjusted in a
way that the --plaintext and --iscrypted options appear just before the password
itself consistently. Also it is better prepared for additional extending (e.g.
minimal length restrictions, etc.).

Vratislav Podzimek (1):
  Two new options for the rootpw command

 pykickstart/commands/rootpw.py  | 63 ++++++++++++++++++++++++++++++++++++++++-
 pykickstart/handlers/control.py |  4 +--
 tests/commands/rootpw.py        | 31 ++++++++++++++++++++
 3 files changed, 95 insertions(+), 3 deletions(-)

-- 
1.7.11.7



More information about the anaconda-patches mailing list