Skip to content

host alias not allowed to contain - #232

@astephanh

Description

@astephanh

Describe the bug
A dynamic inventory plugin (hetzner hcloud) may create host names including a dash. This will lead to parse error in lookup/pfsense.py in check_alias_name.

Is there a specific reason, why this character is not allowed?

Expected behavior
Host names should be allowed to contain dash characters

Playbook
Example playbook from repository

Output

TASK [Setup aliases, rules & seperators] *****************************************************************************************************
[ERROR]: Task failed: Finalization of task args for 'pfsensible.core.pfsense_aggregate' failed: Error while resolving value for 'aggregated_aliases': The lookup plugin 'pfsensible.core.pfsense' failed: fw-1_LAN_ips: the name of the alias may only consist of the characters "a-z, A-Z, 0-9 and _"

Environment

  • What version of pfsensible.core? 0.7.1
  • What version of ansible? core 2.20
  • What version of pfSense? 2.8.1

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions