X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ta%2Fremote-installer.git;a=blobdiff_plain;f=src%2Fremoteinstaller%2Finstaller%2Finstall.py;fp=src%2Fremoteinstaller%2Finstaller%2Finstall.py;h=4e0043a36bab9768781ee570f1d93a7f3dd717e9;hp=a5c099ae508d75b5cab363c4f0a67f5d68172c11;hb=7fa7d82189c6ef7bca981d20563c16fd2300b7c7;hpb=f38c513dbecca841726958c420cd211234eec865 diff --git a/src/remoteinstaller/installer/install.py b/src/remoteinstaller/installer/install.py index a5c099a..4e0043a 100644 --- a/src/remoteinstaller/installer/install.py +++ b/src/remoteinstaller/installer/install.py @@ -180,7 +180,8 @@ class Installer(object): pre_allocated_ips = self._uc['hosts'][self._first_controller].get('pre_allocated_ips', None) if pre_allocated_ips: pre_allocated_infra_external_ip = pre_allocated_ips.get('infra_external', None) - self._first_controller_ip = str(IPAddress(pre_allocated_infra_external_ip)) + if pre_allocated_infra_external_ip: + self._first_controller_ip = str(IPAddress(pre_allocated_infra_external_ip)) if not self._first_controller_ip: self._first_controller_ip = str(IPAddress(first_ip)+1)