Call get_instances_by_name() and handle array back.

Previously the call format could error out if the function returned more
than one instance name.