Commit 3827e093 authored by Jozef Kralik's avatar Jozef Kralik Committed by Kishen Maloor

Fix of unpublish a resource from Cloud

When a resource was published to cloud it must be moved to published
resources because otherwise unpublish functionality doesn't find it.
parent 7adc1e4a
......@@ -129,7 +129,7 @@ publish_resources_handler(oc_client_response_t *data)
if (l) {
l->ins = instance_id;
rd_link_remove(&ctx->rd_publish_resources, l);
rd_link_add(&ctx->rd_publish_resources, l);
rd_link_add(&ctx->rd_published_resources, l);
}
}
link = link->next;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment