Skip to content

Commit cc25f28

Browse files
authored
Merge pull request #574 from SumoLogic/NA_adjustments_on_cse_automation_files
2 parents a2dceb4 + b2789cf commit cc25f28

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

sumologic/resource_sumologic_cse_automation.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ func resourceSumologicCSEAutomationRead(d *schema.ResourceData, meta interface{}
6464

6565
CSEAutomation, err := c.GetCSEAutomation(id)
6666
if err != nil {
67-
log.Printf("[WARN] CSE Custom Entity Type not found when looking by id: %s, err: %v", id, err)
67+
log.Printf("[WARN] CSE Automation not found when looking by id: %s, err: %v", id, err)
6868

6969
}
7070

7171
if CSEAutomation == nil {
72-
log.Printf("[WARN] CSE Custom Entity Type not found, removing from state: %v - %v", id, err)
72+
log.Printf("[WARN] CSE Automation not found, removing from state: %v - %v", id, err)
7373
d.SetId("")
7474
return nil
7575
}

sumologic/resource_sumologic_cse_automation_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,20 +47,20 @@ func testAccCSEAutomationDestroy(s *terraform.State) error {
4747
client := testAccProvider.Meta().(*Client)
4848

4949
for _, rs := range s.RootModule().Resources {
50-
if rs.Type != "sumologic_cse_custom_entity_type" {
50+
if rs.Type != "sumologic_cse_automation" {
5151
continue
5252
}
5353

5454
if rs.Primary.ID == "" {
55-
return fmt.Errorf("CSE Custom Entity Type Config destruction check: CSE Custom Entity Type Config ID is not set")
55+
return fmt.Errorf("CSE Automation destruction check: CSE Automation ID is not set")
5656
}
5757

5858
s, err := client.GetCSEAutomation(rs.Primary.ID)
5959
if err != nil {
6060
return fmt.Errorf("Encountered an error: " + err.Error())
6161
}
6262
if s != nil {
63-
return fmt.Errorf("entity Custom Entity Type still exists")
63+
return fmt.Errorf("automation still exists")
6464
}
6565
}
6666
return nil
@@ -86,7 +86,7 @@ func testCheckCSEAutomationExists(n string, Automation *CSEAutomation) resource.
8686
}
8787

8888
if rs.Primary.ID == "" {
89-
return fmt.Errorf("entity Custom Entity Type ID is not set")
89+
return fmt.Errorf("automation ID is not set")
9090
}
9191

9292
c := testAccProvider.Meta().(*Client)

0 commit comments

Comments
 (0)