lxd/instance/drivers/driver/lxc: Adds renderState function and updates RenderState to use it
lxd/instance/drivers/driver/lxc: Adds renderState function and updates RenderState to use it

The renderState function uses the provided statusCode to avoid needing to call getLxcState again.

Signed-off-by: Thomas Parrott <6b778ce645fb0e3dde76d79eccad490955b1ae74@canonical.com>

stgraber/lxd,hallyn/lxd,atxwebs/lxd,lxc/lxd,lxc/lxd,lxc/lxd,atxwebs/lxd,hallyn/lxd,stgraber/lxd,atxwebs/lxd,stgraber/lxd,hallyn/lxd,stgraber/lxd,hallyn/lxd,lxc/lxd,atxwebs/lxd,stgraber/lxd,hallyn/lxd,lxc/lxd,lxc/lxd,lxc/lxd,stgraber/lxd,hallyn/lxd,stgraber/lxd