fix: isGateway returns false instead of throwing when node does not exist
This commit is contained in:
parent
56a6731dda
commit
a52cde2dd4
1 changed files with 1 additions and 1 deletions
|
|
@ -138,7 +138,7 @@ with lib; rec {
|
|||
isGateway = devices: node:
|
||||
if builtins.hasAttr node devices
|
||||
then devices.${node}.gateway
|
||||
else throw "Host '${node}' does not exist in the devices configuration.";
|
||||
else false;
|
||||
|
||||
## Check for configuration conflicts between mount and share declarations.
|
||||
##
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue