Skip to content

Commit

Permalink
Update PKIServer.remove_subsystem() to take subsystem name
Browse files Browse the repository at this point in the history
  • Loading branch information
edewata committed Sep 13, 2024
1 parent e984ab7 commit 0172c1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions base/server/python/pki/server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1460,8 +1460,8 @@ def get_subsystem(self, subsystem_name):
def add_subsystem(self, subsystem):
self.subsystems[subsystem.name] = subsystem

def remove_subsystem(self, subsystem):
return self.subsystems.pop(subsystem.name, None)
def remove_subsystem(self, subsystem_name):
return self.subsystems.pop(subsystem_name, None)

def enable_subsystems(self):
for subsystem in self.get_subsystems():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def destroy(self, deployer):

logger.info('Removing %s subsystem', deployer.subsystem_type)

instance.remove_subsystem(subsystem)
instance.remove_subsystem(subsystem_name)

if config.str2bool(deployer.mdict['pki_registry_enable']):
subsystem.remove_registry(force=deployer.force)
Expand Down

0 comments on commit 0172c1f

Please sign in to comment.