Skip to content

ValueError: substring not found #50

@rizwanrehman80

Description

@rizwanrehman80

PROBLEM SUMMARY
Hello, we are a TLS Protect Cloud customer using the ansible integration.
We have the collection installed and the vcert sdk installed as well.
We setup a very simple setup playbook and are getting the following error:
ValueError: substring not found

STEPS TO REPRODUCE
run the playbook again

EXPECTED RESULTS
generate and pull cert

ACTUAL RESULTS
ValueError: substring not found

ENVIRONMENT DETAILS
We are on ansible version core 2.11.12 0 and have also seen the issue on ansible 2.18
Vcert is showing as 0.17
Python is 3.9 and also tested with python 3.12
We also tried with changing interpretors on the environment
Error from python 3.12 with ansible 2.18 is attached

COMMENTS/WORKAROUNDS
File "/home/ansbvenf/.local/lib/python3.12/site-packages/vcert/policy/pm_cloud.py", line 771, in resolve_uri_protocols
index = uri_regex.index(')://')
^^^^^^^^^^^^^^^^^^^^^^^
ValueError: substring not found
fatal: [localhost]: FAILED! => {
"changed": false,

Image

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