Skip to content

Commit

Permalink
noop
Browse files Browse the repository at this point in the history
Hirefire API is not behaving correctly.
In order to keep carwow's terraform working, I am making all resources
read operation a noop.
  • Loading branch information
PChambino committed Nov 11, 2021
1 parent aa4f94c commit 14a53f9
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 19 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ workflows:
branches:
ignore: /.*/
tags:
only: /v[0-9]+\.[0-9]+\.[0-9]+/
only: /v[0-9]+\.[0-9]+\.[0-9]+-noop/

jobs:
test:
Expand Down
6 changes: 0 additions & 6 deletions resources/application/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,6 @@ func create(d *schema.ResourceData, m interface{}) error {
}

func read(d *schema.ResourceData, m interface{}) error {
app, err := config.Client(m).Application.Get(d.Id())
if err != nil {
return err
}

setAttributes(d, app)
return nil
}

Expand Down
6 changes: 0 additions & 6 deletions resources/manager/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,12 +413,6 @@ func create(d *schema.ResourceData, m interface{}) error {
}

func read(d *schema.ResourceData, m interface{}) error {
manager, err := config.Client(m).Manager.Get(d.Id())
if err != nil {
return err
}

setAttributes(d, manager)
return nil
}

Expand Down
6 changes: 0 additions & 6 deletions resources/time_range/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,6 @@ func create(d *schema.ResourceData, m interface{}) error {
}

func read(d *schema.ResourceData, m interface{}) error {
timeRange, err := config.Client(m).TimeRange.Get(d.Id())
if err != nil {
return err
}

setAttributes(d, timeRange)
return nil
}

Expand Down

0 comments on commit 14a53f9

Please sign in to comment.