diff --git a/roles/batcave/files/oshift_mod.py b/roles/batcave/files/oshift_mod.py index 592908bc5e..b3057e4cb9 100644 --- a/roles/batcave/files/oshift_mod.py +++ b/roles/batcave/files/oshift_mod.py @@ -282,7 +282,7 @@ class Openshift(object): return (status, raw_response) @conditional_decorator(timeit, DOING_PERFORMANCE_ANALYSIS) - def key_add(self, kwargs): + def key_add(self, **kwargs): """ params: {name, type, key_path} """ diff --git a/roles/batcave/files/sync-openshift-keys.py b/roles/batcave/files/sync-openshift-keys.py index 182ce94332..47c0141dcc 100755 --- a/roles/batcave/files/sync-openshift-keys.py +++ b/roles/batcave/files/sync-openshift-keys.py @@ -8,6 +8,9 @@ from argparse import ArgumentParser from fedora.client import AccountSystem from oshift_mod import Openshift from getpass import getpass +import os + +os.environ['OPENSHIFT_REST_API'] = '1.5' def get_keys(host,user,passwd): os = Openshift(host=host,user=user,passwd=passwd)