Fix getItems not returning correct leaf_data_ variant
Change-Id: I7d008606be7a6f874ecb2e7c22638ea04d4f7639
diff --git a/src/sysrepo_access.cpp b/src/sysrepo_access.cpp
index eec6d6c..b01b484 100644
--- a/src/sysrepo_access.cpp
+++ b/src/sysrepo_access.cpp
@@ -35,7 +35,7 @@
case SR_STRING_T:
return std::string(value->data()->get_string());
case SR_ENUM_T:
- return std::string(value->data()->get_enum());
+ return enum_{std::string(value->data()->get_enum())};
case SR_DECIMAL64_T:
return value->data()->get_decimal64();
case SR_CONTAINER_T: