odl: Make odl_hostconfig patching idempotent 60/69560/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Wed, 15 Jan 2020 17:05:55 +0000 (18:05 +0100)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Thu, 16 Jan 2020 12:49:26 +0000 (12:49 +0000)
commit871a4eecdac3e8ea2a5da6c4a2e3787f5e95f1c0
treefa88fc6892864304e64e089718bf9e5e73e1f4fe
parent238ed19eb4d7cd755bbc95c40e2399cc66eb6fc1
odl: Make odl_hostconfig patching idempotent

Although rarely, ODL hostconfig patching for py3 compatibility
silently fails, leading to fatal errors in later deploy stages.
Skip said patch if already applied, respectively fail if the patch
can't be applied.

Change-Id: I1addf17f61fa01055c0db83056870a7e7b8d3a42
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 29f7bab413201b24fa09c70eb08a569c78d56f9f)
mcp/config/states/opendaylight