diff options
author | Samuel Munilla <smunilla@redhat.com> | 2016-01-06 08:47:15 -0500 |
---|---|---|
committer | Samuel Munilla <smunilla@redhat.com> | 2016-01-08 10:38:30 -0500 |
commit | 81a8df590d40bb4fcc8902e0f9fb6a0406a0fa37 (patch) | |
tree | bf44ad2b1020aee8f3d21a5418069138dbb9db69 /utils/src/ooinstall/oo_config.py | |
parent | 87d94dfb40f92e8858f15135b9484a1e27fd2e22 (diff) | |
download | openshift-81a8df590d40bb4fcc8902e0f9fb6a0406a0fa37.tar.gz openshift-81a8df590d40bb4fcc8902e0f9fb6a0406a0fa37.tar.bz2 openshift-81a8df590d40bb4fcc8902e0f9fb6a0406a0fa37.tar.xz openshift-81a8df590d40bb4fcc8902e0f9fb6a0406a0fa37.zip |
atomic-openshift-installer: Populate new_nodes group
Set the new_nodes group when scaling up additional nodes
Diffstat (limited to 'utils/src/ooinstall/oo_config.py')
-rw-r--r-- | utils/src/ooinstall/oo_config.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/src/ooinstall/oo_config.py b/utils/src/ooinstall/oo_config.py index 031b82bc1..33ab27567 100644 --- a/utils/src/ooinstall/oo_config.py +++ b/utils/src/ooinstall/oo_config.py @@ -38,6 +38,7 @@ class Host(object): self.public_hostname = kwargs.get('public_hostname', None) self.connect_to = kwargs.get('connect_to', None) self.preconfigured = kwargs.get('preconfigured', None) + self.new_host = kwargs.get('new_host', None) # Should this host run as an OpenShift master: self.master = kwargs.get('master', False) @@ -68,7 +69,8 @@ class Host(object): """ Used when exporting to yaml. """ d = {} for prop in ['ip', 'hostname', 'public_ip', 'public_hostname', - 'master', 'node', 'master_lb', 'containerized', 'connect_to', 'preconfigured']: + 'master', 'node', 'master_lb', 'containerized', + 'connect_to', 'preconfigured', 'new_host']: # If the property is defined (not None or False), export it: if getattr(self, prop): d[prop] = getattr(self, prop) |