Skip to content

Commit 68bde67

Browse files
committed
Handle string credentials
1 parent 900a944 commit 68bde67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ def prepare_credentials(resource)
777777
variable_name = random_variable_name
778778
credential_hash = {
779779
'user' => property_hash[:value]['user'],
780-
'password' => escape_quotes(property_hash[:value]['password'].unwrap)
780+
'password' => escape_quotes(unwrap(property_hash[:value]['password']))
781781
}
782782
credentials_block << format_pscredential(variable_name, credential_hash)
783783
instantiated_variables.merge!(variable_name => credential_hash)
@@ -908,7 +908,7 @@ def invoke_params(resource)
908908
# the Credential hash interpolable as it will be replaced by a variable reference.
909909
{
910910
'user' => property_hash[:value]['user'],
911-
'password' => escape_quotes(property_hash[:value]['password'].unwrap)
911+
'password' => escape_quotes(unwrap(property_hash[:value]['password']))
912912
}
913913
when 'DateTime'
914914
# These have to be handled specifically because they rely on the *Puppet* DateTime,

0 commit comments

Comments
 (0)