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

Notify events #33

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Notify events #33

wants to merge 2 commits into from

Conversation

syskill
Copy link

@syskill syskill commented Mar 13, 2014

This branch adds the notify_events parameter for GSLB services (cf. https://help.dynect.net/update-gslb-service-api/#REST). I wanted to add unit tests for this change but found the existing tests for GSLB objects somewhat lacking, so I built them up a bit.

@@ -108,6 +114,10 @@ def get(fqdn=nil, region_code='global')
:serve_mode => h["serve_mode"]
}
end

notify_events = {}
results["notify_events"].split(/,/).each {|s| notify_events[s] = true}
Copy link
Collaborator

Choose a reason for hiding this comment

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

@syskill do we need a regex for split? split(',') should do right?

@ranjib
Copy link
Collaborator

ranjib commented Jul 2, 2014

@syskill thanks for the PR, can you rework this to convert notify_events to be an array,

notify_events = results["notify_events"].split(',').compact

rest should be fine.

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.

2 participants