Only try an ID lookup if we can convert the field name_or_id to an integer

Fix linting issues, update tower_project unit test
This commit is contained in:
John Westcott IV
2020-02-12 21:09:06 -05:00
committed by beeankha
parent 6591efc160
commit 0eef67713f
2 changed files with 37 additions and 32 deletions

View File

@@ -13,7 +13,8 @@ def test_create_project(run_module, admin_user, organization):
organization=organization.name,
scm_type='git',
scm_url='https://foo.invalid',
wait=False
wait=False,
scm_update_cache_timeout=5
), admin_user)
warning = ['scm_update_cache_timeout will be ignored since scm_update_on_launch was not set to true']
assert result.pop('changed', None), result