diff --git a/library/ipadiscovery.py b/library/ipadiscovery.py
index fd11544868aae79c0968fbc1693b120bdbc3b152..41ac44f3d95bf0c3212fef11eab58157d6a66df5 100644
--- a/library/ipadiscovery.py
+++ b/library/ipadiscovery.py
@@ -291,7 +291,7 @@ def main():
             cli_domain_source = 'Provided as option'
         else:
             module.fail_json(
-                msg="Unable to discover domain, not provided on command line")
+                msg="Unable to discover domain, not provided")
 
         ret = ds.search(
             domain=cli_domain,