diff options
author | Roberto Hueso Gómez <rhueso@soleta.eu> | 2020-06-05 13:23:46 +0200 |
---|---|---|
committer | Roberto Hueso Gómez <rhueso@soleta.eu> | 2020-06-05 14:55:10 +0200 |
commit | 1377aceec23fdb0efc4e1406ee308e1377d36065 (patch) | |
tree | e4bd5706cc2bc713d02d90e531c819e21afbb67f | |
parent | d7b7b0b17571c7e36b69314b28dc1ea3a43c2215 (diff) |
Rename 'linux' mode to 'live' mode
'linux' represents ogLive mode that is the reason for the rename.
-rw-r--r-- | cfg/ogclient.json | 2 | ||||
-rwxr-xr-x | main.py | 2 | ||||
-rw-r--r-- | src/ogClient.py | 2 | ||||
-rw-r--r-- | src/ogRest.py | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/cfg/ogclient.json b/cfg/ogclient.json index dc8055d..18d4d8b 100644 --- a/cfg/ogclient.json +++ b/cfg/ogclient.json @@ -3,7 +3,7 @@ "ip": "127.0.0.1", "port": 8889, "log": "DEBUG", - "mode": "linux", + "mode": "live", "url": "https://127.0.0.1/opengnsys/varios/menubrowser.php", "url_log": "http://localhost/cgi-bin/httpd-log.sh" }, @@ -25,7 +25,7 @@ def main(): MODE = CONFIG['opengnsys']['mode'] URL = CONFIG['opengnsys']['url'] - if MODE == 'linux': + if MODE == 'live': proc = subprocess.Popen(["browser", "-qws", URL]) client = ogClient(config=CONFIG) diff --git a/src/ogClient.py b/src/ogClient.py index 881fd81..b148b74 100644 --- a/src/ogClient.py +++ b/src/ogClient.py @@ -30,7 +30,7 @@ class ogClient: self.CONFIG = config self.mode = self.CONFIG['opengnsys']['mode'] - if self.mode not in {'virtual', 'linux'}: + if self.mode not in {'virtual', 'live'}: raise ValueError('Mode not supported.') if self.CONFIG['samba']['activate']: diff --git a/src/ogRest.py b/src/ogRest.py index a52d8a5..9f6a7e6 100644 --- a/src/ogRest.py +++ b/src/ogRest.py @@ -238,7 +238,7 @@ class ogRest(): self.mode = self.CONFIG['opengnsys']['mode'] self.samba_config = self.CONFIG['samba'] - if self.mode == 'linux': + if self.mode == 'live': self.operations = OgLinuxOperations(self.CONFIG) elif self.mode == 'virtual': from src.virtual.ogOperations import \ |