<marlinc_> Hey there, I'm not sure whether I'm running into a bug or not
<marlinc_> I'm trying to set the password hash for the root user on a system using the chpasswd module
<marlinc_> It should match new hash at this line in the module but it doens't seem to match
<marlinc_> https://github.com/cloud-init/cloud-init/blame/master/cloudinit/config/cc_set_passwords.py#L163
<marlinc_> I can confirm this when running it through https://regex101.com/r/Nj7VTZ/1
<marlinc_> Then I was thinking, isn't [] for lists of characters rather than lists of strings
<marlinc_> Changing it to \$(1|2a|2y|5|6)(\$.+){2} does work
<marlinc_> At least in regex101
<marlinc_> smoser, you any idea, I saw you commited the change: https://github.com/cloud-init/cloud-init/commit/21632972df034c200578e1fbc121a07f20bb8774
<smoser> marlinc_: i'd think yes. that is a bug for the '2a' and '2y'
chpasswd:
list:
- root:<hash>
From #cloud-init
<marlinc_> Hey there, I'm not sure whether I'm running into a bug or not /github. com/cloud- init/cloud- init/blame/ master/ cloudinit/ config/ cc_set_ passwords. py#L163 /regex101. com/r/Nj7VTZ/ 1 2y|5|6) (\$.+){ 2} does work /github. com/cloud- init/cloud- init/commit/ 21632972df034c2 00578e1fbc121a0 7f20bb8774
<marlinc_> I'm trying to set the password hash for the root user on a system using the chpasswd module
<marlinc_> It should match new hash at this line in the module but it doens't seem to match
<marlinc_> https:/
<marlinc_> I can confirm this when running it through https:/
<marlinc_> Then I was thinking, isn't [] for lists of characters rather than lists of strings
<marlinc_> Changing it to \$(1|2a|
<marlinc_> At least in regex101
<marlinc_> smoser, you any idea, I saw you commited the change: https:/
<smoser> marlinc_: i'd think yes. that is a bug for the '2a' and '2y'