Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

one_service: fix recreation #8887

Merged
merged 4 commits into from
Sep 26, 2024

Conversation

abakanovskii
Copy link
Contributor

SUMMARY

After some investigation i concluded that the problem described in the related issue can be fixed by changing one if-statement

Fixes #3137

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

one_service

ADDITIONAL INFORMATION

I also deleted a space between a function and a body because in all other functions there is no

# Now this should work as intented
- name: Instantiating OpenNebula service
  ansible.community.one_service:
    template_id: "{{ one_template_id }}"
    service_name: "{{ deployment_name }}"
    unique: true
    wait: true

@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added bug This issue/PR relates to a bug module module plugins plugin (any type) labels Sep 20, 2024
@felixfontein felixfontein added check-before-release PR will be looked at again shortly before release and merged if possible. backport-8 Automatically create a backport for the stable-8 branch backport-9 Automatically create a backport for the stable-9 branch labels Sep 20, 2024
Copy link
Collaborator

@felixfontein felixfontein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution!

changelogs/fragments/8887-fix-one_service-unique.yml Outdated Show resolved Hide resolved
@abakanovskii abakanovskii changed the title One service fix one_service: fix recreation Sep 20, 2024
Copy link
Collaborator

@russoz russoz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@felixfontein felixfontein merged commit 0bc5f24 into ansible-collections:main Sep 26, 2024
147 checks passed
Copy link

patchback bot commented Sep 26, 2024

Backport to stable-8: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-8/0bc5f24863e98d153f89636193bba808b1f54e89/pr-8887

Backported as #8931

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

@felixfontein felixfontein removed the check-before-release PR will be looked at again shortly before release and merged if possible. label Sep 26, 2024
patchback bot pushed a commit that referenced this pull request Sep 26, 2024
* Fix one_service unique creation

* Revert empty space

* Add CHANGELOG fragment

* Update CHANGELOG fragment

(cherry picked from commit 0bc5f24)
Copy link

patchback bot commented Sep 26, 2024

Backport to stable-9: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-9/0bc5f24863e98d153f89636193bba808b1f54e89/pr-8887

Backported as #8932

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

@felixfontein
Copy link
Collaborator

@abakanovskii thanks for fixing this!
@russoz thanks for reviewing!

patchback bot pushed a commit that referenced this pull request Sep 26, 2024
* Fix one_service unique creation

* Revert empty space

* Add CHANGELOG fragment

* Update CHANGELOG fragment

(cherry picked from commit 0bc5f24)
felixfontein pushed a commit that referenced this pull request Sep 26, 2024
…8931)

one_service: fix recreation (#8887)

* Fix one_service unique creation

* Revert empty space

* Add CHANGELOG fragment

* Update CHANGELOG fragment

(cherry picked from commit 0bc5f24)

Co-authored-by: alexander <[email protected]>
felixfontein pushed a commit that referenced this pull request Sep 26, 2024
…8932)

one_service: fix recreation (#8887)

* Fix one_service unique creation

* Revert empty space

* Add CHANGELOG fragment

* Update CHANGELOG fragment

(cherry picked from commit 0bc5f24)

Co-authored-by: alexander <[email protected]>
aioue pushed a commit to aioue/community.general that referenced this pull request Oct 1, 2024
* Fix one_service unique creation

* Revert empty space

* Add CHANGELOG fragment

* Update CHANGELOG fragment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-8 Automatically create a backport for the stable-8 branch backport-9 Automatically create a backport for the stable-9 branch bug This issue/PR relates to a bug has_issue module module plugins plugin (any type)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OpenNebula one_service fails to create a service with unique name
4 participants