Set VESPA_HOSTNAME when calling node-maintainer
@@ -340,6 +340,7 @@ public class StorageMaintainer {
private String executeMaintainer(String mainClass, String... args) {
String[] command = Stream.concat(
Stream.of("sudo",
+ "VESPA_HOSTNAME=" + getDefaults().vespaHostname(),
"VESPA_HOME=" + getDefaults().vespaHome(),
getDefaults().underVespaHome("libexec/vespa/node-admin/maintenance.sh"),
mainClass),
