Subject: | Issue with failed attempts to begin_privileged. |
Date: | Wed, 22 Jan 2014 13:25:06 -0600 |
To: | bug-Net-Appliance-Session [...] rt.cpan.org |
From: | Alloni Kramer <allonikramer [...] gmail.com> |
In Net-Appliance-Session-4.131260, when one attempts to enable privileged
mode using begin_privileged(), but one has the incorrect privileged
password, the begin_privileged attempt will stop processing and only fail
due to the timeout, rather than properly dying with 'should be in
privileged mode but prompt does not match'. This is due to the fact that,
in line 107 of Net/Appliance/Session/Engine.pm, it reads:
$self->cmd($password, { match => 'privileged' });
instead of
$self->cmd($password, { match => 'generic' });
Thanks,
Alloni Kramer