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 image filtering #98

Merged
merged 1 commit into from
Aug 21, 2018
Merged

Fix image filtering #98

merged 1 commit into from
Aug 21, 2018

Conversation

tokengeek
Copy link
Contributor

@tokengeek tokengeek commented Aug 21, 2018

When #83 was merged, the
account was changed from a fog model (responding to #id) to a hash
with #[] key access.

At some point, the key type has changed - potentially caused by a Ruby
or fog change - from a symbol to a string.

The key change meant that the image listings had a filter that was used
by default but would filter anything without an owner ID of nil. That
meant everything.

The workaround was using --show-all which disabled this filter but
then included other images that were not interesting.

This fixes the key type to String for now which seems to work with
several versions of Ruby and the latest fog gems.

For: #97

When #83 was merged, the
`account` was changed from a fog model (responding to `#id`) to a hash
with `#[]` key access.

At some point, the key type has changed - potentially caused by a Ruby
or `fog` change - from a symbol to a string.

The key change meant that the image listings had a filter that was used
by default but would filter anything without an owner ID of `nil`. That
meant everything.

The workaround was using `--show-all` which disabled this filter but
then included other images that were not interesting.

This fixes the key type to `String` for now which seems to work with
several versions of Ruby and the latest fog gems.

For: #GH-97
@tokengeek tokengeek merged commit e4f4456 into master Aug 21, 2018
@tokengeek tokengeek deleted the fix_image_listings branch August 21, 2018 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant