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

Import from repository doesn't panic #8599

Merged

Conversation

miminar
Copy link

@miminar miminar commented Apr 22, 2016

  • Check the import status before a use of image object.
  • Also to set tag names on import status objects in order to produce
    nice output (containing tag names that failed to import).

Resolves #8593

cc @smarterclayton, @legionus

if err == nil {
tag = ref.Tag
if len(status.Tag) > 0 {
tag = status.Tag
Copy link
Contributor

Choose a reason for hiding this comment

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

This assignment doesn't use the ref. Why this if inside err == nil ?

Copy link
Author

Choose a reason for hiding this comment

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

Good catch, this block needs to be moved outside of if err == nil.

@smarterclayton
Copy link
Contributor

Please add a test that exercises all the failure paths here

@miminar miminar force-pushed the image-importer-stacktraceless-8593 branch 2 times, most recently from dde538f to 8862811 Compare April 24, 2016 13:08
@miminar
Copy link
Author

miminar commented Apr 24, 2016

Comments addressed.

- Check the import status before a use of image object.
- Also to set tag names on import status objects in order to produce
  nice output (containing tag names that failed to import).

Signed-off-by: Michal Minar <[email protected]>
@miminar miminar force-pushed the image-importer-stacktraceless-8593 branch from 8862811 to 24519b0 Compare April 24, 2016 13:10
@smarterclayton
Copy link
Contributor

LGTM thanks [merge]

@openshift-bot
Copy link
Contributor

openshift-bot commented Apr 26, 2016

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/3286/) (Image: devenv-rhel7_4039)

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 24519b0

@openshift-bot
Copy link
Contributor

[Test]ing while waiting on the merge queue

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 24519b0

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/3286/)

@openshift-bot openshift-bot merged commit 9e1f716 into openshift:master Apr 26, 2016
@smarterclayton smarterclayton added this to the 1.2.0 milestone May 10, 2016
@miminar miminar deleted the image-importer-stacktraceless-8593 branch June 20, 2016 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants