X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=ansible-server%2Fsrc%2Fmain%2Fansible-server%2FAnsibleModule.py;fp=ansible-server%2Fsrc%2Fmain%2Fansible-server%2FAnsibleModule.py;h=3985ee28ad0953089ea5a757d00c579ab3bc4d27;hb=960153f697743cfc5da142606b1207934865cb24;hp=71d0c0594b067450b7ed75e4580b7640dd880965;hpb=c30a63891a3ccbb35633d51fa25577e4b4058ce8;p=ccsdk%2Fdistribution.git diff --git a/ansible-server/src/main/ansible-server/AnsibleModule.py b/ansible-server/src/main/ansible-server/AnsibleModule.py index 71d0c059..3985ee28 100755 --- a/ansible-server/src/main/ansible-server/AnsibleModule.py +++ b/ansible-server/src/main/ansible-server/AnsibleModule.py @@ -6,7 +6,9 @@ * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Copyright (C) 2019 Amdocs -* ============================================================================= +* ================================================================================ +* Copyright (C) 2019 Orange +* ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -86,7 +88,7 @@ def ansibleSysCall (inventory_path, playbook_path, nodelist, mandatory, envparam ok_flag = line.split(':')[1].strip().split('=')[1].split('changed')[0].strip() changed_flag = line.split(':')[1].strip().split('=')[2].split('unreachable')[0].strip() unreachable_flag = line.split(':')[1].strip().split('=')[3].split('failed')[0].strip() - failed_flag = line.split(':')[1].strip().split('=')[4].strip() + failed_flag = line.split(':')[1].strip().split('=')[4].split('skipped')[0].strip() retval[ip_address]=[ok_flag, changed_flag, unreachable_flag, failed_flag] if "PLAY RECAP" in line: ParseFlag = True