Seite 1 von 1

Get host description in setup.py

Verfasst: 20 Okt 2010, 10:51
von paja
Hi,

I would like to ask you if there is some possibility how to get host description in setup.py script. Something like this:

Code: Alles auswählen

description = host.get('description', clientId)
I am using opsi 4 and I would like to improve setup.py according to my needs.
Thank you.

Pavel

Re: Get host description in setup.py

Verfasst: 20 Okt 2010, 17:29
von j.schneider
Hi,

you can use:

Code: Alles auswählen

client = backend.host_getObjects(id = clientId)[0]
client.getDescription()