Remove redundant check for env.interactive

Fixed as part of
https://fedorahosted.org/freeipa/ticket/3602
This commit is contained in:
Tomas Babej 2013-05-09 14:50:52 +02:00 committed by Martin Kosek
parent 6f51f92138
commit 8984e3e105

View File

@ -1043,7 +1043,6 @@ class cli(backend.Executioner):
"""Get the keyword arguments for a Command"""
if self.env.interactive:
self.prompt_interactively(cmd, kw)
if self.env.interactive:
try:
callbacks = cmd.get_callbacks('interactive_prompt')
except AttributeError: