From 5c3e7c96e765b2dfe8956459d44d6c7087de4c5e Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 16 May 2013 19:52:08 +0000 Subject: [PATCH] Should someone decide to switch from generated to static password on vm(s), remove expiry if present git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16341 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/kvm.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/xCAT-server/lib/xcat/plugins/kvm.pm b/xCAT-server/lib/xcat/plugins/kvm.pm index 04a95cf0a..cd24eac13 100644 --- a/xCAT-server/lib/xcat/plugins/kvm.pm +++ b/xCAT-server/lib/xcat/plugins/kvm.pm @@ -765,6 +765,7 @@ sub getcons { my $tpasswd; if ($confdata->{vm}->{$node}->[0]->{vidpassword}) { $tpasswd=$confdata->{vm}->{$node}->[0]->{vidpassword}; + $graphicsnode->removeAttribute("passwdValidTo"); } else { $tpasswd=genpassword(16); my $validto=POSIX::strftime("%Y-%m-%dT%H:%M:%S",gmtime(time()+60));