Set up
This commit is contained in:
@@ -258,9 +258,7 @@ func (d *Workflow) extractResourcePlantUML(line string, resource resources.Resou
|
||||
resource.SetName(splitted[1])
|
||||
|
||||
splittedComments := strings.Split(line, "'")
|
||||
if len(splittedComments) <= 1 {
|
||||
return "", nil, errors.New("Can't deserialize Object, there's no commentary")
|
||||
}
|
||||
if len(splittedComments) > 1 {
|
||||
comment := strings.ReplaceAll(splittedComments[1], "'", "") // for now it's a json.
|
||||
instance := d.getNewInstance(dataName, splitted[1], peerID)
|
||||
if instance == nil {
|
||||
@@ -269,6 +267,7 @@ func (d *Workflow) extractResourcePlantUML(line string, resource resources.Resou
|
||||
resource.AddInstances(instance)
|
||||
|
||||
json.Unmarshal([]byte(comment), instance)
|
||||
}
|
||||
// deserializer les instances... une instance doit par défaut avoir certaines valeurs d'accès.
|
||||
graphID := uuid.New()
|
||||
graphItem := &graph.GraphItem{
|
||||
|
||||
Reference in New Issue
Block a user