diff options
Diffstat (limited to 'lib/chef/resource/apt_repository.rb')
-rw-r--r-- | lib/chef/resource/apt_repository.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/apt_repository.rb b/lib/chef/resource/apt_repository.rb index 0dc7f7d9b9..68f416df4c 100644 --- a/lib/chef/resource/apt_repository.rb +++ b/lib/chef/resource/apt_repository.rb @@ -170,7 +170,7 @@ class Chef # is the provided ID a key ID from a keyserver. Looks at length and HEX only values # @param [String] id the key value passed by the user that *may* be an ID def is_key_id?(id) - id = id[2..-1] if id.start_with?("0x") + id = id[2..] if id.start_with?("0x") id =~ /^\h+$/ && [8, 16, 40].include?(id.length) end |