Spelling and formatting.

reviewable/pr18780/r1
Richard C Isaacson 11 years ago
parent be9c79ac98
commit 46e613622a

@ -110,7 +110,7 @@ EXAMPLES = '''
- name: remove the Apache package - name: remove the Apache package
yum: name=httpd state=removed yum: name=httpd state=removed
- name: install the latest version of Apche from the testing repo - name: install the latest version of Apache from the testing repo
yum: name=httpd enablerepo=testing state=installed yum: name=httpd enablerepo=testing state=installed
- name: upgrade all packages - name: upgrade all packages
@ -463,6 +463,7 @@ def install(module, items, repoq, yum_basecmd, conf_file, en_repos, dis_repos):
res['msg'] = '' res['msg'] = ''
res['rc'] = 0 res['rc'] = 0
res['changed'] = False res['changed'] = False
downgrade = False downgrade = False
for spec in items: for spec in items:
@ -540,7 +541,7 @@ def install(module, items, repoq, yum_basecmd, conf_file, en_repos, dis_repos):
continue continue
# downgrade - the yum install command will only install or upgrade to a spec version, it will # downgrade - the yum install command will only install or upgrade to a spec version, it will
# not install an older version of an RPM even if specifed by the install spec. So we need to # not install an older version of an RPM even if specified by the install spec. So we need to
# determine if this is a downgrade, and then use the yum downgrade command to install the RPM. # determine if this is a downgrade, and then use the yum downgrade command to install the RPM.
pkg_name = splitFilename(spec)[0] pkg_name = splitFilename(spec)[0]
pkgs = is_installed(module, repoq, pkg_name, conf_file, en_repos=en_repos, dis_repos=dis_repos, is_pkg=True) pkgs = is_installed(module, repoq, pkg_name, conf_file, en_repos=en_repos, dis_repos=dis_repos, is_pkg=True)

Loading…
Cancel
Save