diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-11-26 11:50:52 +0100 |
---|---|---|
committer | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-11-27 13:53:19 +0100 |
commit | e4be5c34eb71da9a705bc62fdfcfe6d763022747 (patch) | |
tree | 70883c72fd8baa07ca225e5a7fee173158283bd2 /src/restRequest.py | |
parent | a36c4daa23d32aeee9539374aa591152ef2c914b (diff) |
src: add support for direct command executionv1.3.2-25
Update live shell run mode for the new REST API interface.
Evaluate the "inline" field to diferentiate between execution of
script in /opt/opengnsys/shell/ and a cmd execution.
Remove usage of echo argument of the API REST.
Update Windows and Linux mode for direct command execution.
Set OutputEncoding environment variable to 'utf-8' in Windows to
unify the encoding of stdout for the invoked programs.
Decode stdout to utf-8-sig to remove potential BOM.
While at this, remove strange legacy ;|\n\r terminator.
Diffstat (limited to 'src/restRequest.py')
-rw-r--r-- | src/restRequest.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/restRequest.py b/src/restRequest.py index 3098c1a..dc0e656 100644 --- a/src/restRequest.py +++ b/src/restRequest.py @@ -33,7 +33,7 @@ class restRequest: self.type = None self.profile = None self.id = None - self.echo = None + self.inline = None self.code = None self.seq = None self.backup = None @@ -72,7 +72,7 @@ class restRequest: if "run" in json_param: self.run = json_param["run"] try: - self.echo = json_param["echo"] + self.inline = json_param["inline"] except: pass @@ -160,8 +160,8 @@ class restRequest: def getId(self): return self.id - def getEcho(self): - return self.echo + def get_inline(self): + return self.inline def getCode(self): return self.code |