diff --git a/library/vcenter_gather_moids.py b/library/vcenter_gather_moids.py index 341c48b..2faccaa 100644 --- a/library/vcenter_gather_moids.py +++ b/library/vcenter_gather_moids.py @@ -38,7 +38,7 @@ def get_mo(content, searchedname, vim_type_list): for object in mo: if object.name == searchedname: return object - elif re.search( searchedname, object.name ): + elif re.search( searchedname, object.name ): return object return None diff --git a/library/vcenter_nsx_license.py b/library/vcenter_nsx_license.py index e12ef9f..4285f59 100644 --- a/library/vcenter_nsx_license.py +++ b/library/vcenter_nsx_license.py @@ -47,7 +47,7 @@ def main(): vcenter=dict(required=True, type='str'), vcenter_user=dict(required=True, type='str'), vcenter_passwd=dict(required=True, type='str', no_log=True), - license_key=dict(required=True, type='str', no_log=True) + license_key=dict(required=True, type='str', no_log=True) ), supports_check_mode=False ) @@ -71,4 +71,3 @@ def main(): if __name__ == '__main__': main() -