]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/python-common/ceph/deployment/hostspec.py
import ceph quincy 17.2.4
[ceph.git] / ceph / src / python-common / ceph / deployment / hostspec.py
index 1bf686f97cf6b9e516db9568609f552f1fed3da6..cb7e4de34842484f3ce444c22638fe92d2c6cfcd 100644 (file)
@@ -13,7 +13,7 @@ def assert_valid_host(name: str) -> None:
             assert len(part) <= 63, '.-delimited name component must not be more than 63 chars'
             assert p.match(part), 'name component must include only a-z, 0-9, and -'
     except AssertionError as e:
-        raise SpecValidationError(str(e))
+        raise SpecValidationError(str(e) + f'. Got "{name}"')
 
 
 class SpecValidationError(Exception):