puppetlabs/beaker — pull request #542 by logicminds (2014-11-17 23:07:37+00:00)
Title: fix bug with sed conditional check during permit root login

If the sshd_config line has a '#" character the original code would fail to enable root logins and fail the whole test. This fixes that by making the '#' character optional.

This fix will ensure any of the following permutations will be set to allow root logins.

```shell
#PermitRootLogin no
#PermitRootLogin yes
PermitRootLogin no
PermitRootLogin yes

```