Oops, need to specify index

This commit is contained in:
niten 2023-11-17 11:12:20 -08:00
parent 4d5823a237
commit b83750e220
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ let
getSiteNetwork = siteName: entities.sites."${siteName}".network;
getSiteV4PrefixLength = siteName:
toInt (elemAt (splitString "/" (getSiteNetwork siteName)));
toInt (elemAt (splitString "/" (getSiteNetwork siteName)) 1);
getSiteV6PrefixLength = siteName:
abort "not implemented: getSiteV6PrefixLength";