fix some error for passing CI build.

This commit is contained in:
Sam Liu 2016-03-08 15:24:02 +08:00
parent 548645e031
commit 7d4e2698b0
2 changed files with 45 additions and 6 deletions

View file

@ -16,7 +16,7 @@
#You should have received a copy of the GNU General Public License
#along with this program. If not, see <http://www.gnu.org/licenses/>.
# WAIT_JSON
# WANT_JSON
# POWERSHELL_COMMON
$params = Parse-Args $args;

View file

@ -20,7 +20,7 @@
DOCUMENTATION = '''
---
module: win_file_version
version_added: "2.0"
version_added: "2.1"
short_descriptions: Get DLL or EXE file build version
description:
- Get DLL or EXE file build version
@ -29,7 +29,8 @@ options:
path:
description:
- File to get version(provide absolute path)
required: true
aliases: []
author: Sam Liu
'''
@ -44,3 +45,41 @@ EXAMPLES = '''
- debug: msg="{{exe_file_version}}"
'''
RETURN = """
win_file_version.path:
description: file path
returned: always
type: string
win_file_version.file_version:
description: file version number.
returned: no error
type: string
win_file_version.product_version:
description: the version of the product this file is distributed with.
returned: no error
type: string
win_file_version.file_major_part:
description: the major part of the version number.
returned: no error
type: string
win_file_version.file_minor_part:
description: the minor part of the version number of the file.
returned: no error
type: string
win_file_version.file_build_part:
description: build number of the file.
returned: no error
type: string
win_file_version.file_private_part:
description: file private part number.
returned: no error
type: string
"""