cluster/services/incandescence: fix script when nothing will be created or changed
This commit is contained in:
parent
4d0f9cd1aa
commit
43b3ebf203
1 changed files with 6 additions and 0 deletions
|
@ -39,6 +39,9 @@ in
|
||||||
fi
|
fi
|
||||||
''))
|
''))
|
||||||
(concatStringsSep "\n")
|
(concatStringsSep "\n")
|
||||||
|
(script: if script == "" then ''
|
||||||
|
echo "Nothing to create"
|
||||||
|
'' else script)
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
"ignite-${provider}-${formula}-change" = mkIf (formulaConfig.change != null) {
|
"ignite-${provider}-${formula}-change" = mkIf (formulaConfig.change != null) {
|
||||||
|
@ -58,6 +61,9 @@ in
|
||||||
) || echo "Change failed: ${object}"
|
) || echo "Change failed: ${object}"
|
||||||
''))
|
''))
|
||||||
(concatStringsSep "\n")
|
(concatStringsSep "\n")
|
||||||
|
(script: if script == "" then ''
|
||||||
|
echo "Nothing to change"
|
||||||
|
'' else script)
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
"ignite-${provider}-${formula}-destroy" = {
|
"ignite-${provider}-${formula}-destroy" = {
|
||||||
|
|
Loading…
Reference in a new issue