Skip to content

Commit

Permalink
Merge pull request #14856 from durandom/google_pubsub
Browse files Browse the repository at this point in the history
Google pubsub - undefined method `empty?' for nil:NilClass
(cherry picked from commit 7edd38f)

https://bugzilla.redhat.com/show_bug.cgi?id=1445083
  • Loading branch information
agrare authored and simaishi committed Apr 24, 2017
1 parent f33b7cc commit b10da52
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ def get_or_create_subscription(google)
# If event catcher is not yet setup, then we'll get a fog error
google.subscriptions.get(subscription_name) ||
google.subscriptions.create(:name => subscription_name,
# add empty config - workaround for https://github.com/fog/fog-google/issues/214
# TODO: remove once the above is resolved
:push_config => {},
:topic => topic_name)
rescue Fog::Errors::NotFound
# Rather than expose the notfound error, we expose our own exception
Expand Down

0 comments on commit b10da52

Please sign in to comment.