diff --git a/Makefile b/Makefile
index 49600f54fffa..8aaab38eb3a8 100644
--- a/Makefile
+++ b/Makefile
@@ -233,7 +233,7 @@ build-mo: $(MOFILES)
 
 .PHONY: static-analysis
 static-analysis:
-	(cd test; sh -c ". suites/static_analysis.sh; test_static_analysis")
+	(cd test; sh -c ". suites/static_analysis.sh; LXD_OFFLINE="" test_static_analysis")
 
 .PHONY: tags
 tags: *.go lxd/*.go shared/*.go lxc/*.go