Switch testing configuration for md-sal tests to xml.
[controller.git] / opendaylight / netconf / netconf-client / src / main / java / org / opendaylight / controller / netconf / client / NetconfClientSessionNegotiator.java
index 3340dde883f09cfb077c6c1dcc6b6ea1b0ca8592..dd8e3c9664588bf5350ad48ec1c1bfdc2b480b60 100644 (file)
@@ -48,7 +48,8 @@ public class NetconfClientSessionNegotiator extends
             @Nullable
             @Override
             public String apply(@Nullable XmlElement input) {
-                return input.getTextContent();
+                // Trim possible leading/tailing whitespace
+                return input.getTextContent().trim();
             }
         });
     }