Skip to content

Commit 45b72fa

Browse files
committed
sudo-rs does not allow to preserve all env variables
1 parent 43b95e6 commit 45b72fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ ifneq ($(filter $(MINI_LAB_FLAVOR),dell_sonic capms),$(MINI_LAB_FLAVOR))
122122
docker pull $(MINI_LAB_SONIC_IMAGE)
123123
endif
124124
@if ! sudo $(CONTAINERLAB) --topo $(LAB_TOPOLOGY) inspect | grep -i leaf01 > /dev/null; then \
125-
sudo --preserve-env $(CONTAINERLAB) deploy --topo $(LAB_TOPOLOGY) --reconfigure && \
125+
sudo --preserve-env=MINI_LAB_SONIC_IMAGE --preserve-env=MINI_LAB_VM_IMAGE $(CONTAINERLAB) deploy --topo $(LAB_TOPOLOGY) --reconfigure && \
126126
./scripts/deactivate_offloading.sh; fi
127127

128128
.PHONY: external_network

0 commit comments

Comments
 (0)