fixup! Support for Librato Alerts and Services
This commit is contained in:
parent
cb66079538
commit
2ba1c4e39a
|
@ -100,7 +100,6 @@ func resourceLibratoAlert() *schema.Resource {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
// TODO add missing condition attrs
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
package librato
|
package librato
|
||||||
|
|
||||||
import (
|
import (
|
||||||
// "crypto/sha1"
|
|
||||||
// "encoding/hex"
|
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
|
@ -39,10 +37,6 @@ func resourceLibratoService() *schema.Resource {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Required: true,
|
Required: true,
|
||||||
StateFunc: normalizeJson,
|
StateFunc: normalizeJson,
|
||||||
//StateFunc: func(v interface{}) string {
|
|
||||||
// hash := sha1.Sum([]byte(v.(string)))
|
|
||||||
// return hex.EncodeToString(hash[:])
|
|
||||||
//},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue