From efafc2251466f4df66d198ba87752c1decbd2deb Mon Sep 17 00:00:00 2001 From: bikegeek Date: Mon, 7 Aug 2023 10:11:47 -0600 Subject: [PATCH] Issue #221 Replace the ERROR with a WARNING and proceed when a password is missing. This allows cloud-users to continue without a password. --- METdbLoad/ush/read_load_xml.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/METdbLoad/ush/read_load_xml.py b/METdbLoad/ush/read_load_xml.py index 9e65ef37..aa403208 100644 --- a/METdbLoad/ush/read_load_xml.py +++ b/METdbLoad/ush/read_load_xml.py @@ -239,10 +239,10 @@ def read_db_connect(self, root): root.xpath('connection')[0].xpath('user')[0].text self.connection['db_password'] = \ root.xpath('connection')[0].xpath('password')[0].text + # For AWS users, an empty password is acceptable. if ((not self.connection['db_user']) or (not self.connection['db_password'])): - logging.error("!!! XML must include user and password tags") - raise NameError("Missing required user or password tag or both") + logging.warning("!!! XML expecting user and password tags") if root.xpath('connection')[0].xpath('management_system'): self.connection['db_management_system'] = \