Merge pull request #9461 from bosu/fix-cont-ifaces
containers: fix interfaces option bugs
This commit is contained in:
commit
f27e30da43
@ -122,7 +122,7 @@ in
|
||||
|
||||
interfaces = mkOption {
|
||||
type = types.listOf types.string;
|
||||
default = null;
|
||||
default = [];
|
||||
example = [ "eth1" "eth2" ];
|
||||
description = ''
|
||||
The list of interfaces to be moved into the container.
|
||||
@ -344,9 +344,7 @@ in
|
||||
LOCAL_ADDRESS=${cfg.localAddress}
|
||||
''}
|
||||
''}
|
||||
${optionalString (cfg.interfaces != null) ''
|
||||
INTERFACES="${toString cfg.interfaces}"
|
||||
''}
|
||||
${optionalString cfg.autoStart ''
|
||||
AUTO_START=1
|
||||
''}
|
||||
|
Loading…
Reference in New Issue
Block a user