Skip to content

Commit cfb83aa

Browse files
Merge pull request #667 from softlayer/allmightyspiff-patch-1
Update SuscribeUserUnplainedIncident.rb.md
2 parents 090a57a + 46a1e3e commit cfb83aa

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

content/ruby/SuscribeUserUnplainedIncident.rb.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ tags:
99
---
1010

1111

12-
```
12+
```ruby
1313
require 'softlayer_api'
1414
require 'pp'
1515

@@ -27,9 +27,7 @@ userClient = client.service_named('SoftLayer_User_Customer')
2727
result = userClient.object_with_id(customerID).addNotificationSubscriber("UNPLANNED_INCIDENT")
2828
# if the notification suscriber has been added we procede to create the suscriberDeliveryMethods
2929
if result
30-
deliveryMethodKeyNames = [
31-
"EMAIL"
32-
]
30+
deliveryMethodKeyNames = [ "EMAIL" ]
3331
result = userClient.object_with_id(customerID).createSubscriberDeliveryMethods("UNPLANNED_INCIDENT", deliveryMethodKeyNames)
3432
pp (result)
3533
end

0 commit comments

Comments
 (0)