API v2: fix "local variable 'c' referenced before assignment"
API v2: fix "local variable 'c' referenced before assignment"

The subject explain it all.

Change-Id: If35d56e010d203c96769e7123414a6486d9b789f

openstack/sahara,openstack/sahara