Skip to content

Commit 06faf24

Browse files
committed
Do not force config_file to be string
1 parent 233696c commit 06faf24

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

ocp_resources/resource.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -485,11 +485,6 @@ def __init__(
485485
self.node_selector = node_selector
486486
self.node_selector_labels = node_selector_labels
487487
self.config_file = config_file
488-
if not isinstance(self.config_file, str):
489-
# If we pass config_file which isn't a string, get_client will fail and it will be very hard to know why.
490-
# Better fail here and let the user know.
491-
raise ValueError("config_file must be a string")
492-
493488
self.config_dict = config_dict or {}
494489
self.context = context
495490
self.label = label

0 commit comments

Comments
 (0)