Skip to content

upgrade to 9.1.0 make /apt_key.rb:100: syntax error, unexpected ']' #1144

Open
@aqueos

Description

@aqueos

Describe the Bug

since upgrading to 9.1.0 puppet fail to run with

Error: Could not autoload puppet/provider/apt_key/apt_key: /opt/puppetlabs/puppet/cache/lib/puppet/provider/apt_key/apt_key.rb:100: syntax error, unexpected ']'
...   key_long: fingerprint[-16..], # last 16 characters of fin...

downgrading to 9.0.2 and all works again.
puppet module install puppetlabs-apt --ignore-dependencies --version 9.0.2 --force

Expected Behavior

continue working like with 9.0.2

Steps to Reproduce

Steps to reproduce the behavior:

  1. upgrade the module version
    2 run puppet agent

Environment

  • Version puppet 6 with apt module 9.1.0
  • Platform debian 10

Additional Context


Notice: Found 'puppetlabs-apt' (v9.0.2) in /etc/puppetlabs/code/environments/production/modules ...                                                                                                                                                           
Notice: Downloading from https://forgeapi.puppet.com ...                                                                                                                                                                                                      
Notice: Upgrading -- do not interrupt ...                                                                                                                                                                                                                     
/etc/puppetlabs/code/environments/production/modules                                                                                                                                                                                                          
└── puppetlabs-apt (v9.0.2 -> v9.1.0)  
[~]: puppetreload 
Info: Using environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Loading facts
Error: Could not autoload puppet/provider/apt_key/apt_key: /opt/puppetlabs/puppet/cache/lib/puppet/provider/apt_key/apt_key.rb:100: syntax error, unexpected ']'
...   key_long: fingerprint[-16..], # last 16 characters of fin...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions