IBM / operator-collection-sdk

The IBM Operator Collection SDK provides the resources and tools that are needed to develop Operator Collections against the IBM® z/OS® Cloud Broker as part of the IBM Z® and Cloud Modernization Stack.
https://ibm.github.io/operator-collection-sdk/
Apache License 2.0
8 stars 1 forks source link

error handling when initializing a collection #89

Closed MariandreaMV closed 8 months ago

MariandreaMV commented 9 months ago

Bug Report

What did you do?

Attempted to create a pre-existing collection running the init_collection playbook

What did you expect to see?

Handle the error when the collection already exists

What did you see instead? Under which circumstances?

I saw the error output but the playbook ran all the tasks and returned code 0, no errors

Collection Version

$ ansible-galaxy collection verify ibm.operator_collection_sdk

ibm.operator_collection_sdk:1.1.1

Possible Solution

add error handling in the ansible-galaxy init command when the collection path already exist and stops executing