Changing documention and fixing sanity tests

This commit is contained in:
John Westcott IV
2020-06-02 10:18:20 -04:00
parent 30346618f1
commit 11da8e254d
3 changed files with 13 additions and 6 deletions

View File

@@ -107,7 +107,8 @@ class TowerModule(AnsibleModule):
elif isinstance(token_param, string_types):
self.oauth_token = self.params.get('tower_oauthtoken')
else:
self.fail_json(msg="The provided tower_oauthtoken type was not valid ({0}), please refer to ansible-doc for valid options".format(type(token_param).__name__))
error_msg = "The provided tower_oauthtoken type was not valid ({0}). Valid options are str or dict.".format(type(token_param).__name__)
self.fail_json(msg=error_msg)
# Perform some basic validation
if not re.match('^https{0,1}://', self.host):