Expose option to save all dependencies when writing spec.yaml (#9965)
This commit is contained in:

committed by
Peter Scheibel

parent
4c3091b05e
commit
33b112a60d
@@ -1503,9 +1503,9 @@ def to_dict(self, all_deps=False):
|
|||||||
|
|
||||||
return syaml_dict([('spec', node_list)])
|
return syaml_dict([('spec', node_list)])
|
||||||
|
|
||||||
def to_yaml(self, stream=None):
|
def to_yaml(self, stream=None, all_deps=False):
|
||||||
return syaml.dump(
|
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):
|
def to_json(self, stream=None):
|
||||||
return sjson.dump(self.to_dict(), stream)
|
return sjson.dump(self.to_dict(), stream)
|
||||||
|
Reference in New Issue
Block a user