Skip to content

Commit

Permalink
candlepin: call psql with --no-password to avoid waiting on input
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Jansky <jjansky@redhat.com>
  • Loading branch information
jjansky1 committed Mar 1, 2021
1 parent 00a25de commit 21360a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sos/plugins/candlepin.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ def build_query_cmd(self, query, csv=False):
a large amount of quoting in sos logs referencing the command being run
"""
csvformat = "-A -F , -X" if csv else ""
_dbcmd = "psql -h %s -p 5432 -U candlepin -d candlepin %s -c %s"
_dbcmd = "psql --no-password -h %s -p 5432 -U candlepin \
-d candlepin %s -c %s"
return _dbcmd % (self.dbhost, csvformat, quote(query))

def postproc(self):
Expand Down

0 comments on commit 21360a3

Please sign in to comment.