mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-03-30 06:13:05 +01:00
fixed a goovy syntax issue with http posts callback closures
This commit is contained in:
@@ -280,7 +280,7 @@ def createBucket() {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
// Create a bucket on Initial State so the data has a logical grouping
|
// Create a bucket on Initial State so the data has a logical grouping
|
||||||
httpPostJson(bucketCreatePost) { resp =>
|
httpPostJson(bucketCreatePost) { resp ->
|
||||||
log.debug "bucket posted"
|
log.debug "bucket posted"
|
||||||
if (resp.status >= 400) {
|
if (resp.status >= 400) {
|
||||||
log.error "bucket not created successfully"
|
log.error "bucket not created successfully"
|
||||||
@@ -353,7 +353,7 @@ def shipEvents() {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
// post the events to initial state
|
// post the events to initial state
|
||||||
httpPostJson(eventPost) { resp =>
|
httpPostJson(eventPost) { resp ->
|
||||||
log.debug "shipped events and got ${resp.status}"
|
log.debug "shipped events and got ${resp.status}"
|
||||||
if (resp.status >= 400) {
|
if (resp.status >= 400) {
|
||||||
log.error "shipping failed... ${resp.data}"
|
log.error "shipping failed... ${resp.data}"
|
||||||
|
|||||||
Reference in New Issue
Block a user