ensure that video is never wide open

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9472 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2011-05-03 13:24:11 +00:00
parent 9b44d29b50
commit 18d4a1b0bc

View File

@ -1008,6 +1008,9 @@ sub makedom {
} elsif (not $xml) {
$xml = build_xmldesc($node,cd=>$cdloc);
}
my $parseddom = $parser->parse_string($xml);
my ($graphics) = $parseddom->findnodes("//graphics");
$graphics->setAttribute("passwd",genpassword(20));
my $errstr;
eval { $dom=$hypconn->create_domain($xml); };
if ($@) { $errstr = $@; }