summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorDavid Moreau-Simard <dms@redhat.com>2017-05-16 17:29:40 -0400
committerDavid Moreau-Simard <dms@redhat.com>2017-05-16 17:29:40 -0400
commit1a43e7da5f69d5015ed5dafca50f80f2c8ec528d (patch)
tree14328fd2caa1ee2eea8460def1d554e4b1d81752 /roles
parent80aa02bdf6b17d2812f637131b8ac945a3f865cb (diff)
downloadopenshift-1a43e7da5f69d5015ed5dafca50f80f2c8ec528d.tar.gz
openshift-1a43e7da5f69d5015ed5dafca50f80f2c8ec528d.tar.bz2
openshift-1a43e7da5f69d5015ed5dafca50f80f2c8ec528d.tar.xz
openshift-1a43e7da5f69d5015ed5dafca50f80f2c8ec528d.zip
Add teams attribute to github identity provider
GitHubIdentityProvider provides the ability to authenticate against GitHub organization teams [1]. This adds the attribute as optional so that users do not get the error "provider GitHubIdentityProvider contains unknown keys teams". [1]: https://docs.openshift.com/container-platform/3.5/install_config/configuring_authentication.html#GitHub
Diffstat (limited to 'roles')
-rw-r--r--roles/openshift_master_facts/filter_plugins/openshift_master.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/roles/openshift_master_facts/filter_plugins/openshift_master.py b/roles/openshift_master_facts/filter_plugins/openshift_master.py
index 65f85066e..cf91515c7 100644
--- a/roles/openshift_master_facts/filter_plugins/openshift_master.py
+++ b/roles/openshift_master_facts/filter_plugins/openshift_master.py
@@ -468,7 +468,8 @@ class GitHubIdentityProvider(IdentityProviderOauthBase):
"""
def __init__(self, api_version, idp):
IdentityProviderOauthBase.__init__(self, api_version, idp)
- self._optional += [['organizations']]
+ self._optional += [['organizations'],
+ ['teams']]
class FilterModule(object):