Skip to content
Snippets Groups Projects
Commit e21c2eec authored by Constantinos Venetsanopoulos's avatar Constantinos Venetsanopoulos Committed by Iustin Pop
Browse files

Pass check_ip and not hostname.ip to _ComputeNics


This should be done because in the case of --no-name-check there
is no 'hostname.ip' attribute, causing an execution error.
'check_ip' is always set (in CheckArguments) even if --no-name-check
is passed in the command line.

Signed-off-by: default avatarConstantinos Venetsanopoulos <cven@grnet.gr>
Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 924d9134
No related branches found
No related tags found
No related merge requests found
...@@ -10273,7 +10273,7 @@ class LUInstanceCreate(LogicalUnit): ...@@ -10273,7 +10273,7 @@ class LUInstanceCreate(LogicalUnit):
self._RevertToDefaults(cluster) self._RevertToDefaults(cluster)
   
# NIC buildup # NIC buildup
self.nics = _ComputeNics(self.op, cluster, self.hostname1.ip, self.cfg, self.nics = _ComputeNics(self.op, cluster, self.check_ip, self.cfg,
self.proc.GetECId()) self.proc.GetECId())
   
# disk checks/pre-build # disk checks/pre-build
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment