source: opsi/opsi-getDepots.py @ 843

Last change on this file since 843 was 843, checked in by torsten, 12 years ago

Neu Gruppierung

  • Property svn:executable set to *
File size: 481 bytes
Line 
1#!/usr/bin/python
2# -*- coding: utf-8 -*-
3
4#from OPSI.Backend.Backend import *
5from OPSI.Backend.BackendManager import BackendManager
6
7#from OPSI.Backend.JSONRPC import JSONRPCBackend
8#from OPSI.Logger import *
9#from OPSI.Product import *
10#from OPSI import Tools
11#from OPSI.UI import *
12
13bm = BackendManager(authRequired = False, configFile = '/etc/opsi/backendManager.d')
14depotIds = bm.getDepotIds_list()
15for i in range(len(depotIds)):
16    print "depots[%i]=%s" % (i, depotIds[i])
Note: See TracBrowser for help on using the repository browser.