From c4eb5d165a00fbe7e5ec2e9a1e7f2123ce09bcd5 Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Wed, 6 Nov 2024 13:19:26 +0100 Subject: ogcli: move configuration data into a different file Move the configuration into its own file so it is easier to access from multiple files. --- cli/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cli/cli.py') diff --git a/cli/cli.py b/cli/cli.py index 89c3b73..3d49791 100644 --- a/cli/cli.py +++ b/cli/cli.py @@ -20,6 +20,7 @@ from cli.objects.center import OgCenter from cli.objects.room import OgRoom from cli.objects.folder import OgFolder from cli.objects.session import OgSession +from cli.config import cfg import argparse import requests import sys @@ -77,7 +78,7 @@ class OgREST(): class OgCLI(): - def __init__(self, cfg): + def __init__(self): self.rest = OgREST(cfg['ip'], cfg['port'], cfg['api_token']) def list(self, args): -- cgit v1.2.3-18-g5258