Skip to content

Commit 1331546

Browse files
committed
config is not optional, rename config_file to config_path
Signed-off-by: Matthias Büchse <[email protected]>
1 parent 73da3fd commit 1331546

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Tests/kaas/plugin/plugin_kind.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ class PluginKind(KubernetesClusterPlugin):
1414
Plugin to handle the provisioning of kubernetes cluster for
1515
conformance testing purpose with the use of Kind
1616
"""
17-
def __init__(self, config_file):
17+
def __init__(self, config_path):
1818
logger.info("Init PluginKind")
19-
self.config = config_file
19+
self.config = config_path
2020
logger.debug(self.config)
2121
self.working_directory = os.getcwd()
2222
logger.debug(f"Working from {self.working_directory}")

Tests/kaas/plugin/plugin_static.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ class PluginStatic(KubernetesClusterPlugin):
99
using a kubeconfig file
1010
"""
1111

12-
def __init__(self, config_file):
13-
self.kubeconfig_path = config_file
12+
def __init__(self, config_path):
13+
self.kubeconfig_path = config_path
1414

1515
def create_cluster(self, cluster_name, version, kubeconfig):
1616
shutil.copyfile(self.kubeconfig_path, kubeconfig)

Tests/kaas/plugin/run_plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
}
1515

1616

17-
def init_plugin(plugin_kind, config=None):
17+
def init_plugin(plugin_kind, config_path):
1818
plugin_maker = PLUGIN_LOOKUP.get(plugin_kind)
1919
if plugin_maker is None:
2020
raise ValueError(f"unknown plugin '{plugin_kind}'")
21-
return plugin_maker(config)
21+
return plugin_maker(config_path)
2222

2323

2424
def load_spec(clusterspec_path):

0 commit comments

Comments
 (0)