Merge branch 'fix-13050'

This commit is contained in:
Philippe Caseiro 2016-05-10 12:27:19 +02:00
commit 4a9aed61bc

View File

@ -9,6 +9,7 @@ import sys
import os
import csv
import logging
import re
LOG_FILE = '/var/log/one/eole-one-node.log'
@ -56,10 +57,11 @@ class OneClient():
self.auth = res[1].split(':')
def __run_cmd__(self, cmd):
cmd.extend(['--user', self.auth[0]])
cmd.extend(['--password', self.auth[1]])
command = list(cmd)
command.extend(['--user', self.auth[0]])
command.extend(['--password', self.auth[1]])
res = process.system_out(cmd)
res = process.system_out(command)
if res[0] == 0:
if 'list' in cmd:
out_lines = []
@ -67,7 +69,7 @@ class OneClient():
for line in res[1].split('\n'):
if len(line) == 0:
next
elif 'ID' in line:
elif re.match('^.*ID ', line):
next
else:
out_lines.append(line.split())