Fix cut-paste bug in clean_credentials (coverity reported)

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Merge remote-tracking branch 'malahal/pull-request' into dev-14-merge