Bug 38209 - ServiceInfo.get_service returns nothing
ServiceInfo.get_service returns nothing
Status: CLOSED DUPLICATE of bug 34234
Product: UCS
Classification: Unclassified
Component: UCR
UCS 4.0
Other Linux
: P5 normal (vote)
: UCS 4.0-x
Assigned To: Philipp Hahn
Florian Best
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-04-07 17:06 CEST by Dirk Wiesenthal
Modified: 2023-03-25 06:55 CET (History)
2 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:
best: Patch_Available+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Wiesenthal univentionstaff 2015-04-07 17:06:35 CEST
def get_service( self, name ):
  '''returns a service object associated with the given name or
  None if it does not exist'''
  self.services.get( name, None )

There is a "return" missing. I needed it for the App Center, finding out whether a service is running. Now I need to workaround it.
Comment 1 Florian Best univentionstaff 2015-04-08 11:50:57 CEST
Patch is just adding the "return" in
base/univention-config-registry/python/univention/service_info.py
Comment 2 Florian Best univentionstaff 2017-01-03 15:58:12 CET

*** This bug has been marked as a duplicate of bug 34234 ***