Fix instance add for missing node specs
authorThomas Thrainer <thomasth@google.com>
Thu, 20 Jun 2013 10:55:40 +0000 (12:55 +0200)
committerThomas Thrainer <thomasth@google.com>
Thu, 20 Jun 2013 11:52:23 +0000 (13:52 +0200)
commit4665b94f7893080725af19e10b7d02af490e3b40
treec660de00f0d0e4b122ff0d8929eefefafd207fc0
parent0cac64ac45cfa6c90cc061b24c92a39333f2e362
Fix instance add for missing node specs

Don't pass None to cfg.GetNodeNames. Instead, only resolve the node
names if it's sure that the UUID list is valid.

This fixes issue 495.

Signed-off-by: Thomas Thrainer <thomasth@google.com>
Reviewed-by: Klaus Aehlig <aehlig@google.com>
lib/cmdlib/instance.py