Skip to content

Commit

Permalink
Issue #221 Replace the ERROR with a WARNING and proceed when a passwo…
Browse files Browse the repository at this point in the history
…rd is missing. This allows cloud-users to continue without a password.
  • Loading branch information
bikegeek committed Aug 7, 2023
1 parent 2c35b04 commit efafc22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions METdbLoad/ush/read_load_xml.py
Expand Up @@ -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'] = \
Expand Down

0 comments on commit efafc22

Please sign in to comment.