Expose option to save all dependencies when writing spec.yaml (#9965)

This commit is contained in:
Scott Wittenburg 2018-11-27 19:13:39 -06:00 committed by Peter Scheibel
parent 4c3091b05e
commit 33b112a60d

View file

@ -1503,9 +1503,9 @@ def to_dict(self, all_deps=False):
return syaml_dict([('spec', node_list)])
def to_yaml(self, stream=None):
def to_yaml(self, stream=None, all_deps=False):
return syaml.dump(
self.to_dict(), stream=stream, default_flow_style=False)
self.to_dict(all_deps), stream=stream, default_flow_style=False)
def to_json(self, stream=None):
return sjson.dump(self.to_dict(), stream)