Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ACL Entry - NEGATED constant not defined #188

Open
bstewart00 opened this issue Jun 28, 2023 · 1 comment
Open

ACL Entry - NEGATED constant not defined #188

bstewart00 opened this issue Jun 28, 2023 · 1 comment

Comments

@bstewart00
Copy link

bstewart00 commented Jun 28, 2023

Version
5.1.1
What happened
Attempting to use this API results in a NameError

acl_entry_api.bulk_update_acl_entries({ service_id: 'service id', acl_id: 'acl-id', bulk_update_acl_entries_request: Fastly::BulkUpdateAclEntriesRequest.new(entries: [Fastly::BulkUpdateAclEntry.new(id: 'entry_id')]) })

NameError: uninitialized constant Fastly::BulkUpdateAclEntry::NEGATED

Workaround: define it in the calling application

  Fastly::NEGATED = Module.new unless Fastly.const_defined?(:NEGATED)
  unless Fastly::NEGATED.const_defined?(:N0)
    Fastly::NEGATED.const_set(:N0, false)
  end
@harmony7
Copy link
Member

Updating this ticket to mark that an internal ticket exists to track this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants