Skip to content

ACL Entry - NEGATED constant not defined #188

@bstewart00

Description

@bstewart00

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions