reverting 2 commits to get_nodes

Change-Id: I9d0ceef0eb9ae8ecdb337f47c79714a4c014b392