Skip to content

Commit

Permalink
SIRE-9538 Fix rubocup error "Prefer string interpolation to string co…
Browse files Browse the repository at this point in the history
…ncatenation"

Reviewed-by: muspelkat, beilers
  • Loading branch information
Henning-B committed Jun 20, 2023
1 parent bde6832 commit 39f3988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/provider/mongodb_database/mongodb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def self.instances
rs.slaveOk()
}
'
mongo_eval_result = mongo_eval(pre_cmd + ';JSON.stringify(db.getMongo().getDBs())')
mongo_eval_result = mongo_eval("#{pre_cmd};JSON.stringify(db.getMongo().getDBs())")
pp mongo_eval_result
dbs = JSON.parse mongo_eval_result

Expand Down

0 comments on commit 39f3988

Please sign in to comment.