From 0e46aa6db7b9cb5ae74690a2723301059c8b9714 Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Wed, 11 Jan 2023 14:56:40 -0500 Subject: [PATCH] fix(java): handle empty modules Fixes https://github.com/googleapis/synthtool/issues/1743 --- docker/owlbot/java/src/fix-poms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/owlbot/java/src/fix-poms.py b/docker/owlbot/java/src/fix-poms.py index b14877ef9..a7cbe4515 100644 --- a/docker/owlbot/java/src/fix-poms.py +++ b/docker/owlbot/java/src/fix-poms.py @@ -467,7 +467,7 @@ def main(): main_module=main_module, ) - if os.path.isfile("pom.xml"): + if os.path.isfile("pom.xml") and modules: print("updating modules in parent pom.xml") update_parent_pom("pom.xml", modules) else: