commit | 0d8abd1485c1cb48f174d4c8b842bc8739d080ed | [log] [tgz] |
---|---|---|
author | Jan Kundrát <jan.kundrat@cesnet.cz> | Thu May 07 02:00:14 2020 +0200 |
committer | Jan Kundrát <jan.kundrat@cesnet.cz> | Wed May 13 18:28:26 2020 +0200 |
tree | 19df189e544bc561a10a2732b32ea9f010918f4e | |
parent | 6ebcc6c3b1e4f24e791bed242b85db32b034f430 [diff] [blame] |
Fix identityref passing through sysrepo and NETCONF Change-Id: Ie0f712befe56c2fcea52401a12c33812b7fb9066
diff --git a/src/utils.cpp b/src/utils.cpp index dbfc647..665aedd 100644 --- a/src/utils.cpp +++ b/src/utils.cpp
@@ -165,7 +165,7 @@ std::string operator()(const identityRef_& data) const { - return data.m_prefix.value().m_name + ":" + data.m_value; + return data.m_prefix ? (data.m_prefix.value().m_name + ":" + data.m_value) : data.m_value; } std::string operator()(const special_& data) const