Rewrite method to not use try/except
Rewrite method to not use try/except

Additional checks are not needed, because 'self.conn.get_entry(-1)'
returns all existing entries, each one should have state defined.

thaim/ansible,thaim/ansible