Skip to content

Cannot ensure: absent on dbindex #409

@tparkercbn

Description

@tparkercbn

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: All
  • Ruby: All
  • Distribution: All
  • Module version: 7.0.2

How to reproduce (e.g Puppet code you use)

ldapserver::dbindexes:
'uid,cn':
attribute: 'uid,cn'
ensure: 'absent'

What are you seeing

Error: Could not set 'absent' on ensure: undefined method destroy' for #<Puppet::Type::Openldap_dbindex:0x0000000004ff8d78> (file: /etc/puppetlabs/code/environments/wsauth_dbindex/modules/openldap/manifests/server/dbindex.pp, line: 10) Error: Could not set 'absent' on ensure: undefined method destroy' for #Puppet::Type::Openldap_dbindex:0x0000000004ff8d78 (file: /etc/puppetlabs/code/environments/wsauth_dbindex/modules/openldap/manifests/server/dbindex.pp, line: 10)
Wrapped exception:
undefined method destroy' for #<Puppet::Type::Openldap_dbindex:0x0000000004ff8d78> Error: /Stage[main]/Ldapserver/Openldap::Server::Dbindex[uid,cn]/Openldap_dbindex[uid,cn]/ensure: change from 'present' to 'absent' failed: Could not set 'absent' on ensure: undefined method destroy' for #Puppet::Type::Openldap_dbindex:0x0000000004ff8d78 (file: /etc/puppetlabs/code/environments/wsauth_dbindex/modules/openldap/manifests/server/dbindex.pp, line: 10)

What behaviour did you expect instead

DBindex removed

Output log

Any additional information you'd like to impart

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