patches: ensure existing pool config is kept
patches: ensure existing pool config is kept

When the daemon gets killed mid-upgrade and the storage_api patch doesn't
successfully complete but a storage pool entry was already created in the db it
is vital that we do not alter the current config. We should only alter it when
it is not set in the first place.

Signed-off-by: Christian Brauner <48455ab3070520a2d174545c7239d6d0fabd9a83@ubuntu.com>

Skarlso/lxd,stgraber/lxd,jsavikko/lxd,hallyn/lxd,atxwebs/lxd,pcdummy/lxd,jsavikko/lxd,erikmack/lxd,lxc/lxd,Skarlso/lxd,pcdummy/lxd,stgraber/lxd,stgraber/lxd,techtonik/lxd,georghopp/lxd,erikmack/lxd,georghopp/lxd,lxc/lxd,pcdummy/lxd,mjeanson/lxd,hallyn/lxd,lxc/lxd,hallyn/lxd,lxc/lxd,Skarlso/lxd,hallyn/lxd,lxc/lxd,mjeanson/lxd,hallyn/lxd,atxwebs/lxd,atxwebs/lxd,techtonik/lxd,stgraber/lxd,mjeanson/lxd,jsavikko/lxd,erikmack/lxd,techtonik/lxd,stgraber/lxd,hallyn/lxd,Skarlso/lxd,atxwebs/lxd,lxc/lxd,stgraber/lxd,georghopp/lxd,lxc/lxd,stgraber/lxd