From 227093f652abceb551facb1147cacb6f46d25fb8 Mon Sep 17 00:00:00 2001 From: "Ramón M. Gómez" Date: Sat, 25 Apr 2020 13:08:57 +0200 Subject: #962: Fix typo in commit `88fc95a`. --- .../Clients/ogagent/src/opengnsys/modules/server/OpenGnSys/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3-18-g5258