Commit f3592489 by John Jarvis

Merge pull request #1661 from edx/jarv/fix-force

the force option was not used correctly
parents 2272a325 159282e0
......@@ -13,7 +13,7 @@ elif [ "$regenerate" = "true" ] ; then
$ansible "$manage regenerate_user -c $course_id -u $username"
else
$ansible "$manage ungenerated_certs -c $course_id && $manage gen_cert_report -c $course_id" | grep -A2 "Looking up certificate states for" | sed 's/rm:.*//'
if [ "$force_certificate_state" ]; then
$ansible "$manage ungenerated_certs -c $course_id $force_certificate_state && $manage gen_cert_report -c $course_id" | grep -A2 "Looking up certificate states for" | sed 's/rm:.*//'
if [ -n "$force_certificate_state" ]; then
$ansible "$manage ungenerated_certs -c $course_id -f $force_certificate_state && $manage gen_cert_report -c $course_id" | grep -A2 "Looking up certificate states for" | sed 's/rm:.*//'
fi
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment