1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-03-12 04:58:34 +03:00

Fixiung up og

This commit is contained in:
Adolfo Gómez García 2017-09-29 11:49:37 +02:00
parent df70dd4fd8
commit ad1bf0fe0b

View File

@ -201,7 +201,7 @@ class OpenGnsysClient(object):
'image': image,
'lab': lab,
'client': res['id'],
'id': '.'.join((six.text_type(ou), six.text_type(res['lab'][0]), six.text_type(res['id']))),
'id': '.'.join((six.text_type(ou), six.text_type(res['lab']['id']), six.text_type(res['id']))),
'name': res['name'],
'ip': res['ip'],
'mac': ':'.join(re.findall('..', res['mac']))