cli: Do not serialize empty workspace (#559)
This commit is contained in:
parent
03042590a9
commit
ba6e15d557
|
@ -190,7 +190,8 @@ impl ToString for Config {
|
||||||
false => Some(self.scripts.clone()),
|
false => Some(self.scripts.clone()),
|
||||||
},
|
},
|
||||||
clusters,
|
clusters,
|
||||||
workspace: Some(self.workspace.clone()),
|
workspace: (!self.workspace.members.is_empty() || !self.workspace.exclude.is_empty())
|
||||||
|
.then(|| self.workspace.clone()),
|
||||||
};
|
};
|
||||||
|
|
||||||
toml::to_string(&cfg).expect("Must be well formed")
|
toml::to_string(&cfg).expect("Must be well formed")
|
||||||
|
|
Loading…
Reference in New Issue