diff --git a/ocp_resources/data_source.py b/ocp_resources/data_source.py index 7645b89e67..7119998880 100644 --- a/ocp_resources/data_source.py +++ b/ocp_resources/data_source.py @@ -35,7 +35,7 @@ def to_dict(self): if not self._source: raise ValueError("Passing yaml_file or parameter 'source' is required") - self.res["spec"]["source"] = self._source + self.res.update({"spec": {"source": self._source}}) @property def pvc(self):