Fix feature config pusher warning 85/44185/2
authorTom Pantelis <tpanteli@brocade.com>
Wed, 17 Aug 2016 17:12:31 +0000 (13:12 -0400)
committerTom Pantelis <tpanteli@brocade.com>
Mon, 22 Aug 2016 18:41:21 +0000 (18:41 +0000)
commit64e760caf2a5d223cca7598b3ff8941ac37c7a96
treeeaaa2f1a8c6160409ce611e918174eace4674de9
parentd36bb316a9dd7ba06298195f4c8760dee561b8ec
Fix feature config pusher warning

The feature config pusher assumes config files installed by features
that have XML extension are CSS files and tries to parse them. On failure
it prints a warning but ignores it and moves on. Up till now we've only
had CSS XML files but we now have XML files related to the
clustered-app-config. To avoid the warning I added an additional check
for "opendaylight/karaf" present in the file path. To be complete we would
open the file and inspect the first element but I didn't think that was worth
the effort since all current CSS files are put under opendaylight/karaf and
ODL is moving away from CSS.

Change-Id: I1f0dcda9efa14db330a72e455fe4756c8fbfcaab
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
opendaylight/config/config-persister-feature-adapter/src/main/java/org/opendaylight/controller/configpusherfeature/internal/AbstractFeatureWrapper.java