diff options
author | John Mulligan <jmulligan@redhat.com> | 2024-07-15 21:14:37 +0200 |
---|---|---|
committer | John Mulligan <jmulligan@redhat.com> | 2024-08-20 15:42:12 +0200 |
commit | 9c06ff345d5c39c6c014907c48eb1d2799e12a34 (patch) | |
tree | a10dee35bfd713db7eef16e1331578aecf46ac08 /src/cephadm | |
parent | cephadm: add a new context getter for rank (diff) | |
download | ceph-9c06ff345d5c39c6c014907c48eb1d2799e12a34.tar.xz ceph-9c06ff345d5c39c6c014907c48eb1d2799e12a34.zip |
cephadm: allow longer subcomponent names
Allow subcomponent names up to 32 chars long.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
Diffstat (limited to 'src/cephadm')
-rw-r--r-- | src/cephadm/cephadmlib/daemon_identity.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cephadm/cephadmlib/daemon_identity.py b/src/cephadm/cephadmlib/daemon_identity.py index 760401a3e54..52a18092bf0 100644 --- a/src/cephadm/cephadmlib/daemon_identity.py +++ b/src/cephadm/cephadmlib/daemon_identity.py @@ -117,7 +117,7 @@ class DaemonSubIdentity(DaemonIdentity): ) -> None: super().__init__(fsid, daemon_type, daemon_id) self._subcomponent = subcomponent - if not re.match('^[a-zA-Z0-9]{1,15}$', self._subcomponent): + if not re.match('^[a-zA-Z0-9]{1,32}$', self._subcomponent): raise ValueError( f'invalid subcomponent; invalid characters: {subcomponent!r}' ) |