mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-17 12:28:55 +00:00
Fix wrong variable.
This commit is contained in:
parent
f68f80722b
commit
82df0a745c
@ -18,9 +18,9 @@ _VALID_STR = re.compile('^[A-Za-z0-9_-]+$')
|
|||||||
|
|
||||||
def _validate_part(string, part, part_name):
|
def _validate_part(string, part, part_name):
|
||||||
if not part:
|
if not part:
|
||||||
raise ValueError(f'Invalid platform string "{string}": {part} is empty')
|
raise ValueError(f'Invalid platform string "{string}": {part_name} is empty')
|
||||||
if not _VALID_STR.match(part):
|
if not _VALID_STR.match(part):
|
||||||
raise ValueError(f'Invalid platform string "{string}": {part} has invalid characters')
|
raise ValueError(f'Invalid platform string "{string}": {part_name} has invalid characters')
|
||||||
return part
|
return part
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user