Skip to content

Commit

Permalink
Merge pull request #159 from RedHatInsights/apigroup-to-str
Browse files Browse the repository at this point in the history
making sure apigroup is a string before split
  • Loading branch information
Jason-RH authored Dec 9, 2021
2 parents 1189533 + 71de87c commit d4fc8b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bonfire/openshift.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def get_api_resources():
resource = {
"name": line[name_start:name_end].strip().rstrip("s") or None,
"shortnames": shortnames.split(",") if shortnames else [],
"apigroup": line[apigroup_start:apigroup_end].strip() or None,
"apigroup": line[apigroup_start:apigroup_end].strip() or "",
"namespaced": line[namespaced_start:namespaced_end].strip() == "true",
"kind": line[kind_start:].strip() or None,
}
Expand Down

0 comments on commit d4fc8b9

Please sign in to comment.