Skip to content

Commit

Permalink
Merge pull request #304 from michelsciortino/patch-1
Browse files Browse the repository at this point in the history
Fixing ParentResource::IsMandatory return value
  • Loading branch information
frisso committed May 18, 2020
2 parents ad26207 + 2542e4e commit fc7cbbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/polycubed/src/server/Resources/Body/ParentResource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ void ParentResource::AddChild(std::shared_ptr<Resource> &&child) {

bool ParentResource::IsMandatory() const {
if (container_presence_)
return true;
return false;
if (rpc_action_)
return false;
return std::end(children_) !=
Expand Down

0 comments on commit fc7cbbc

Please sign in to comment.