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

fix: allowReplace param for datasource in modify-data-object task #399

Merged
merged 1 commit into from
May 21, 2024

Conversation

ksimon1
Copy link
Member

@ksimon1 ksimon1 commented May 13, 2024

What this PR does / why we need it:
fix: allowReplace param for datasource in modify-data-object task

when datasource does not exists and allowReplace param is set to true, the task fails, because it could not find the object. This commit adds check if the error returned is notFound and if yes, do not return the error

Release note:

fix: allowReplace param for datasource in modify-data-object task

@kubevirt-bot kubevirt-bot added the dco-signoff: yes Indicates the PR's author has DCO signed all their commits. label May 13, 2024
@kubevirt-bot kubevirt-bot requested review from akrejcir and lyarwood May 13, 2024 12:13
@openshift-ci openshift-ci bot requested a review from opokornyy May 13, 2024 12:13
Copy link

openshift-ci bot commented May 13, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ksimon1

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 13, 2024
@akrejcir
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 14, 2024
@ksimon1
Copy link
Member Author

ksimon1 commented May 14, 2024

/retest

when datasource does not exists and allowReplace param is set to true,
the task fails, because it could not find the object. This commit adds
check if the error returned is notFound and if yes, do not return the
error

Signed-off-by: Karel Simon <[email protected]>
@ksimon1 ksimon1 force-pushed the fix-allow-replace-datasource branch from fb206c1 to eb87194 Compare May 20, 2024 09:09
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label May 20, 2024
Copy link

openshift-ci bot commented May 20, 2024

New changes are detected. LGTM label has been removed.

@ksimon1
Copy link
Member Author

ksimon1 commented May 20, 2024

/retest

@ksimon1 ksimon1 merged commit cbbaa9f into kubevirt:main May 21, 2024
10 checks passed
@ksimon1
Copy link
Member Author

ksimon1 commented Jun 19, 2024

/cherrypick release-v0.17

@kubevirt-bot
Copy link
Contributor

@ksimon1: new pull request created: #432

In response to this:

/cherrypick release-v0.17

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants