Skip to content

Commit

Permalink
Merge pull request #1080 from VallariAg/shorten-metadata-id
Browse files Browse the repository at this point in the history
server.py: remove '<pool>.<group>' from metadata id
  • Loading branch information
VallariAg authored Feb 6, 2025
2 parents 1782220 + 23caef4 commit fd260b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions control/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,8 @@ def _register_service_map(self):
"daemon_type": "gateway", # "nvmeof: 3 <daemon_type> active (3 hosts)"
"group": self.config.get_with_default("gateway", "group", ""),
}
metadata["id"] = metadata["id"].removeprefix(
f"{metadata['pool_name']}.{metadata['group']}.")
self.ceph_utils.service_daemon_register(conn, metadata)

def _monitor_client_version(self) -> str:
Expand Down

0 comments on commit fd260b1

Please sign in to comment.