From dabc7ebf83605dd6105599d7a45045e614e431cc Mon Sep 17 00:00:00 2001 From: Roberto Hueso Gómez Date: Tue, 21 Jan 2020 13:06:56 +0100 Subject: Change POST /refresh to GET /refresh This patch changes the HTTP method for /refresh and cleans up the implementation of the /refresh Linux operator. --- src/linux/ogOperations.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/linux') diff --git a/src/linux/ogOperations.py b/src/linux/ogOperations.py index e58256f..e41bb86 100644 --- a/src/linux/ogOperations.py +++ b/src/linux/ogOperations.py @@ -162,11 +162,11 @@ def image_create(path, request, ogRest): return output.decode('utf-8') def refresh(ogRest): - listConfigs = [] - disk = -1; - try: - ogRest.proc = subprocess.Popen([OG_PATH + 'interfaceAdm/getConfiguration'], stdout=subprocess.PIPE, shell=True) + cmd = OG_PATH + 'interfaceAdm/getConfiguration' + ogRest.proc = subprocess.Popen([cmd], + stdout=subprocess.PIPE, + shell=True) (output, error) = ogRest.proc.communicate() except: raise ValueError('Error: Incorrect command value') -- cgit v1.2.3-18-g5258