Avoid hard coding for driver state
Avoid hard coding for driver state

The log message will show the state of driver,
but hard coding is not a good habit

Closes-Bug:1530103

Change-Id: Ic639ab4d0cd36f035bfceb5ebcd75901ca6f179b
Signed-off-by: Yang Li <bf939620b76d4855bb0530b0fe15387775fb390d@easystack.cn>

openstack/akanda-rug,stackforge/akanda-rug,stackforge/akanda-rug,openstack/akanda-rug