Refactor: tools: Unindent a loop in cli_resource_update_attribute.
By inverting a condition in the recursive call block, I can unindent a
bunch of code that would come after it. I think the result is just as
readable as what was there before. I considered also unindenting the
entire recursive block, but that would probably reduce readability.