update credentials section in ilo files. Add sync_data script .

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-04-23 15:25:42 -04:00
parent 1ebf3f1435
commit 9bef455732
3 changed files with 134 additions and 2 deletions
+2 -2
View File
@@ -28,8 +28,8 @@ if not os.path.exists(cred_path):
config = configparser.ConfigParser()
config.read(cred_path)
try:
LOGIN_ACCOUNT = config.get("ilo", "username", fallback="root")
LOGIN_PASSWORD = config.get("ilo", "password")
LOGIN_ACCOUNT = config.get("ilo_credentials", "username", fallback="root")
LOGIN_PASSWORD = config.get("ilo_credentials", "password")
except (configparser.NoSectionError, configparser.NoOptionError) as e:
print(f"Error reading credentials file: {e}", file=sys.stderr)
sys.exit(1)