diff --git a/lib/puppet.rb b/lib/puppet.rb index 40f990a52b5..484fda4c4ef 100644 --- a/lib/puppet.rb +++ b/lib/puppet.rb @@ -259,7 +259,7 @@ def self.push_context(overrides, description = "") @context.push(overrides, description) end - # Push something onto the the context and make it global across threads. This + # Push something onto the context and make it global across threads. This # has the potential to convert threadlocal overrides earlier on the stack into # global overrides. # @api private diff --git a/lib/puppet/parser/scope.rb b/lib/puppet/parser/scope.rb index 8a63566a851..9ec1c810647 100644 --- a/lib/puppet/parser/scope.rb +++ b/lib/puppet/parser/scope.rb @@ -425,7 +425,7 @@ def class_scope(klass) # additive -- it collects all of the defaults, with defaults # in closer scopes overriding those in later scopes. # - # The lookupdefaults searches in the the order: + # The lookupdefaults searches in the order: # # * inherited # * contained (recursive) diff --git a/lib/puppet/pops/evaluator/epp_evaluator.rb b/lib/puppet/pops/evaluator/epp_evaluator.rb index c69c64daa1b..af1b9bb38b3 100644 --- a/lib/puppet/pops/evaluator/epp_evaluator.rb +++ b/lib/puppet/pops/evaluator/epp_evaluator.rb @@ -82,7 +82,7 @@ def self.evaluate(parser, func_name, scope, use_global_scope_only, parse_result, end # filter out all qualified names and set them in qualified_variables - # only pass unqualified (filtered) variable names to the the template + # only pass unqualified (filtered) variable names to the template filtered_args = {} template_args.each_pair do |k, v| if k =~ /::/ diff --git a/lib/puppet/pops/loader/module_loaders.rb b/lib/puppet/pops/loader/module_loaders.rb index 1c635a37985..726bd524b90 100644 --- a/lib/puppet/pops/loader/module_loaders.rb +++ b/lib/puppet/pops/loader/module_loaders.rb @@ -347,7 +347,7 @@ def global? end # Answers `true` if the loader used by this instance is rooted beneath 'lib'. This is - # typically true for the the system_loader. It will have a path relative to the parent + # typically true for the system_loader. It will have a path relative to the parent # of 'puppet' instead of the parent of 'lib/puppet' since the 'lib' directory of puppet # is renamed during install. This is significant for loaders that load ruby code. # diff --git a/lib/puppet/pops/types/p_object_type.rb b/lib/puppet/pops/types/p_object_type.rb index 31c0388595e..22902453447 100644 --- a/lib/puppet/pops/types/p_object_type.rb +++ b/lib/puppet/pops/types/p_object_type.rb @@ -656,7 +656,7 @@ def parameter_info(impl_class) index = param_names.index(ip) if index.nil? raise Serialization::SerializationError, - "Initializer for class #{impl_class.name} parameter '#{ip}' does not match any of the the attributes of type #{name}" + "Initializer for class #{impl_class.name} parameter '#{ip}' does not match any of the attributes of type #{name}" end new_param_types << param_types[index] end diff --git a/lib/puppet/pops/types/string_converter.rb b/lib/puppet/pops/types/string_converter.rb index 02533cbcdc3..76f9ab66f06 100644 --- a/lib/puppet/pops/types/string_converter.rb +++ b/lib/puppet/pops/types/string_converter.rb @@ -790,7 +790,7 @@ def string_PBinaryType(val_type, val, format_map, _) Kernel.format(f.orig_fmt.gsub('s', substitute), val_to_convert) when :p - # width & precision applied to string, not the the name of the type + # width & precision applied to string, not the name of the type "Binary(\"#{Kernel.format(f.orig_fmt.tr('p', 's'), val.to_s)}\")" when :b diff --git a/lib/puppet/type.rb b/lib/puppet/type.rb index ce4719d54e4..e4397bb9e32 100644 --- a/lib/puppet/type.rb +++ b/lib/puppet/type.rb @@ -1904,7 +1904,7 @@ def self.unprovide(name) # Returns a list of suitable providers for the given type. # A call to this method will load all providers if not already loaded and ask each if it is - # suitable - those that are are included in the result. + # suitable - those that are included in the result. # @note This method also does some special processing which rejects a provider named `:fake` (for testing purposes). # @return [Array] Returns an array of all suitable providers. # diff --git a/lib/puppet/type/file.rb b/lib/puppet/type/file.rb index fc7526f6756..325364d10f8 100644 --- a/lib/puppet/type/file.rb +++ b/lib/puppet/type/file.rb @@ -972,7 +972,7 @@ def write(property = nil) private - # Carry the context of sensitive parameters to the the properties that will actually handle that + # Carry the context of sensitive parameters to the properties that will actually handle that # sensitive data. # # The file type can accept file content from a number of origins and depending on the current diff --git a/spec/unit/node/environment_spec.rb b/spec/unit/node/environment_spec.rb index 42160e5cdc5..d4c4961caa2 100644 --- a/spec/unit/node/environment_spec.rb +++ b/spec/unit/node/environment_spec.rb @@ -518,7 +518,7 @@ def assert_manifest_conflict(expectation, envconf_manifest_value) expect(krt.find_definition('foo')).to be_kind_of(Puppet::Resource::Type) end - it "parses from the the environment's manifests if Puppet[:code] is not set" do + it "parses from the environment's manifests if Puppet[:code] is not set" do filename = tmpfile('a_manifest.pp') File.open(filename, 'w') do |f| f.puts("define from_manifest {}") diff --git a/spec/unit/ssl/ssl_provider_spec.rb b/spec/unit/ssl/ssl_provider_spec.rb index d4414bb4eac..e0d11d33817 100644 --- a/spec/unit/ssl/ssl_provider_spec.rb +++ b/spec/unit/ssl/ssl_provider_spec.rb @@ -254,7 +254,7 @@ }.to raise_error(ArgumentError, /CA certs are missing/) end - it 'raises if CRLs are are missing' do + it 'raises if CRLs are missing' do expect { subject.create_context(**config.merge(crls: nil)) }.to raise_error(ArgumentError, /CRLs are missing/)