Expose option to save all dependencies when writing spec.yaml (#9965)
This commit is contained in:
parent
4c3091b05e
commit
33b112a60d
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue