Commit 1699013f by Michael DeHaan

Rename 'ensure' to 'state' so it lines up with the service module

parent ae0e4ff0
...@@ -195,8 +195,8 @@ def remove_only(pkgspec): ...@@ -195,8 +195,8 @@ def remove_only(pkgspec):
pass pass
def main(): def main():
# ensure=installed pkg=pkgspec # state=installed pkg=pkgspec
# ensure=removed pkg=pkgspec # state=removed pkg=pkgspec
# list=installed # list=installed
# list=updates # list=updates
# list=available # list=available
...@@ -222,7 +222,7 @@ def main(): ...@@ -222,7 +222,7 @@ def main():
results = list_stuff(my, params['list']) results = list_stuff(my, params['list'])
elif 'ensure' in params: elif 'ensure' in params:
my = yum_base(conf_file=params['conf_file'], cachedir=True) my = yum_base(conf_file=params['conf_file'], cachedir=True)
state = params['ensure'] state = params['state']
pkgspec = params['pkg'] pkgspec = params['pkg']
results = ensure(my, state, pkgspec) results = ensure(my, state, pkgspec)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment