From dc8c12bf6ebc4ca75f6d693ea8e225f425b6f1bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ram=C3=B3n=20M=2E=20G=C3=B3mez?= Date: Mon, 18 Jun 2018 20:47:35 +0200 Subject: [PATCH] #750: Using PEP 8 Style Guide for Python in new module; implementing basic {{{getconfig}}} operation. --- oglive/build-packages.sh | 11 ----------- src/opengnsys/modules/server/OpenGnSys/__init__.py | 1 + 2 files changed, 1 insertion(+), 11 deletions(-) delete mode 100755 oglive/build-packages.sh diff --git a/oglive/build-packages.sh b/oglive/build-packages.sh deleted file mode 100755 index 4d5eb8d..0000000 --- a/oglive/build-packages.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -cd $(dirname "$0") -top=`pwd` - -[ -r ../src/VERSION ] && VERSION="$(cat ../src/VERSION)" || VERSION="1.1.0" -RELEASE="1" - -# Debian based -dpkg-buildpackage -b -d - diff --git a/src/opengnsys/modules/server/OpenGnSys/__init__.py b/src/opengnsys/modules/server/OpenGnSys/__init__.py index 03459b0..610bba2 100644 --- a/src/opengnsys/modules/server/OpenGnSys/__init__.py +++ b/src/opengnsys/modules/server/OpenGnSys/__init__.py @@ -172,6 +172,7 @@ class OpenGnSysWorker(ServerWorker): t = 0 # Generate random secret to send on activation self.random = ''.join(random.choice(string.ascii_lowercase + string.digits) for _ in range(self.length)) + self.cmd = None # Ensure cfg has required configuration variables or an exception will be thrown url = self.service.config.get('opengnsys', 'remote') if operations.os_type == 'ogLive' and 'oglive' in os.environ: