Lines 111-117
def reload(self, force=False):
|
Link Here
|
---|
|
111 |
# last time we checked, no uuid was found |
111 |
# last time we checked, no uuid was found |
112 |
# but maybe the user installed a new license? |
112 |
# but maybe the user installed a new license? |
113 |
try: |
113 |
try: |
114 |
lo = get_machine_connection(write=False)[0].lo |
114 |
lo = get_machine_connection(write=False)[0] |
115 |
data = lo.search('objectClass=univentionLicense') |
115 |
data = lo.search('objectClass=univentionLicense') |
116 |
self._uuid = data[0][1]['univentionLicenseKeyID'][0] |
116 |
self._uuid = data[0][1]['univentionLicenseKeyID'][0] |
117 |
except Exception as e: |
117 |
except Exception as e: |
Lines 954-960
def should_show_up_in_app_center(self, package_manager, domainwide_managed=None)
|
Link Here
|
---|
|
954 |
|
954 |
|
955 |
@machine_connection(write=False, loarg='lo', poarg='pos') |
955 |
@machine_connection(write=False, loarg='lo', poarg='pos') |
956 |
def get_installations(self, hosts=None, lo=None, pos=None): |
956 |
def get_installations(self, hosts=None, lo=None, pos=None): |
957 |
lo = lo.lo |
|
|
958 |
try: |
957 |
try: |
959 |
ret = {} |
958 |
ret = {} |
960 |
try: |
959 |
try: |
Lines 1639-1645
def install_master_packages_on_host(self, package_manager, function, host, usern
|
Link Here
|
---|
|
1639 |
|
1638 |
|
1640 |
@machine_connection(write=False, loarg='lo', poarg='pos') |
1639 |
@machine_connection(write=False, loarg='lo', poarg='pos') |
1641 |
def find_all_hosts(self, is_master, lo=None, pos=None): |
1640 |
def find_all_hosts(self, is_master, lo=None, pos=None): |
1642 |
lo = lo.lo |
|
|
1643 |
hosts = [] |
1641 |
hosts = [] |
1644 |
if not is_master: |
1642 |
if not is_master: |
1645 |
hosts.append((get_master(lo), True)) |
1643 |
hosts.append((get_master(lo), True)) |