summaryrefslogtreecommitdiffstats
path: root/src/ogClient.py
diff options
context:
space:
mode:
authorJose M. Guisado <jguisado@soleta.eu>2021-11-18 10:38:25 +0100
committerJose M. Guisado <jguisado@soleta.eu>2021-11-18 13:50:16 +0100
commitf9511932ad996a4cd75b569cfa0eb7ccc223b608 (patch)
tree936fa55dfc37d4acc5db6f0b4ad88f5634416ba1 /src/ogClient.py
parent3dfe54968b6e50d5b85391bd9302c2a4f0a21aa3 (diff)
#1065 Add windows mode
Add agent mode for windows platform. Subprocess module for shell/run is cross-platform an no change was needed. The subprocess will run with the same privilege as its parent, ogclient. TODO: Provide a windows installer. As of now, an administrator needs to install python and required libraries for this mode to be usable.
Diffstat (limited to 'src/ogClient.py')
-rw-r--r--src/ogClient.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ogClient.py b/src/ogClient.py
index d842ee5..13a55f4 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', 'live', 'linux'}:
+ if self.mode not in {'virtual', 'live', 'linux', 'windows'}:
raise ValueError('Mode not supported.')
if self.CONFIG['samba']['activate']: