Commit 78d32db8 authored by Christos Tranoris's avatar Christos Tranoris
Browse files

fix for #42

parent 963b589d
Loading
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -146,6 +146,9 @@ public class PrimitivesParser {
        if (descriptor.trim().startsWith("[")) {
            // It's JSON
            vnfdJson = new JSONObject(descriptor.substring(1, descriptor.length() - 1));
        } else if (descriptor.trim().startsWith("{")) {
          // It's JSON
          vnfdJson = new JSONObject(descriptor);
      } else{
            // It's YAML
            Yaml yaml = new Yaml();