View | Details | Raw Unified | Return to bug 43550
Collapse All | Expand All

(-)a/management/univention-appcenter/umc/python/appcenter/app_center.py (-3 / +1 lines)
 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))
(-)a/management/univention-appcenter/umc/python/appcenter/util.py (-1 lines)
 Lines 118-124   def get_all_hosts(lo=None, ucr=None): Link Here 
118
		lo = get_machine_connection(write=False)[0]
118
		lo = get_machine_connection(write=False)[0]
119
		if lo is None:
119
		if lo is None:
120
			return []
120
			return []
121
		lo = lo.lo
122
	return get_hosts(domaincontroller_master, lo, ucr) + \
121
	return get_hosts(domaincontroller_master, lo, ucr) + \
123
		get_hosts(domaincontroller_backup, lo, ucr) + \
122
		get_hosts(domaincontroller_backup, lo, ucr) + \
124
		get_hosts(domaincontroller_slave, lo, ucr) + \
123
		get_hosts(domaincontroller_slave, lo, ucr) + \

Return to bug 43550