Get host description in setup.py

Antworten
paja
Beiträge: 26
Registriert: 20 Okt 2009, 12:17

Get host description in setup.py

Beitrag 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
Benutzeravatar
j.schneider
uib-Team
Beiträge: 1819
Registriert: 29 Mai 2008, 15:14

Re: Get host description in setup.py

Beitrag von j.schneider »

Hi,

you can use:

Code: Alles auswählen

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