summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRamón M. Gómez <ramongomez@us.es>2020-04-25 13:08:57 +0200
committerRamón M. Gómez <ramongomez@us.es>2020-04-25 13:08:57 +0200
commit227093f652abceb551facb1147cacb6f46d25fb8 (patch)
tree72fc2586d2e48ba5e757a293790b857fd8999d16
parentdbfc6aafb4d45fcc8954c9b7bf6b9a6c63ef0c07 (diff)
#962: Fix typo in commit `88fc95a`.
-rw-r--r--admin/Sources/Clients/ogagent/src/opengnsys/modules/server/OpenGnSys/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/Sources/Clients/ogagent/src/opengnsys/modules/server/OpenGnSys/__init__.py b/admin/Sources/Clients/ogagent/src/opengnsys/modules/server/OpenGnSys/__init__.py
index 5fab6589..70cc8c7f 100644
--- a/admin/Sources/Clients/ogagent/src/opengnsys/modules/server/OpenGnSys/__init__.py
+++ b/admin/Sources/Clients/ogagent/src/opengnsys/modules/server/OpenGnSys/__init__.py
@@ -282,7 +282,7 @@ class OpenGnSysWorker(ServerWorker):
logger.debug('Processing script request')
# Decoding script (Windows scripts need a subprocess call per line)
script = urllib.unquote(post_params.get('script').decode('base64')).decode('utf8')
- if operations.os_type == 'Windoes':
+ if operations.os_type == 'Windows':
script = 'import subprocess; {0}'.format(
';'.join(['subprocess.check_output({0},shell=True)'.format(repr(c)) for c in script.split('\n')]))
else: