コード例 #1
0
def ipaservers(request, xmlrpc_setup):
    # Track the ipaservers hostgroup
    # Since the hostgroup is protected, we cannot use 'make_fixture()' because
    # it will try to delete the object when scope is destroyed and that will
    # fail. Thus, we only create it here.
    tracker = HostGroupTracker(name=u'ipaservers',
                               description=u'IPA server hosts')
    tracker.exists = True
    tracker.track_create()
    return tracker