Skip to content

Commit

Permalink
fix: remove reading offer
Browse files Browse the repository at this point in the history
  • Loading branch information
amandahla committed Dec 17, 2024
1 parent d5d94e2 commit e36c04a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions internal/juju/offers.go
Original file line number Diff line number Diff line change
Expand Up @@ -412,10 +412,6 @@ func (c offersClient) GrantOffer(input *GrantRevokeOfferInput) error {
defer func() { _ = conn.Close() }()

client := applicationoffers.NewClient(conn)
_, err = client.ApplicationOffer(input.OfferURL)
if err != nil {
return err
}

for _, user := range input.Users {
err = client.GrantOffer(user, input.Access, input.OfferURL)
Expand All @@ -441,10 +437,6 @@ func (c offersClient) RevokeOffer(input *GrantRevokeOfferInput) error {
defer func() { _ = conn.Close() }()

client := applicationoffers.NewClient(conn)
_, err = client.ApplicationOffer(input.OfferURL)
if err != nil {
return err
}

for _, user := range input.Users {
err = client.RevokeOffer(user, input.Access, input.OfferURL)
Expand Down

0 comments on commit e36c04a

Please sign in to comment.