Skip to content

Fix pkg.latest_version when latest already installed - #37149

Merged
cachedout merged 1 commit into
saltstack:developfrom
dincamihai:fix-pkg.latest_version
Oct 24, 2016
Merged

cachedout merged 1 commit into
saltstack:developfrom
dincamihai:fix-pkg.latest_version

Conversation

@dincamihai

Copy link
Copy Markdown
Contributor

What does this PR do?

Fixes pkg.latest_version in case the latest version already installed

Previous Behavior

   {
       "vero_quisquam": {
           "pkg_|-latest-state_|-postfix_|-latest": {
               "comment": "An exception occurred in this state: Traceback (most recent call last):\n  File \"/salt/src/salt-devel/salt/state.py\", line 1733, in call\n    **cdata['kwargs'])\n  File \"/salt/src/salt-devel/salt/loader.py\", line 1651, in wrapper\n    return f(*args, **kwargs)\n  File \"/salt/src/salt-devel/salt/states/pkg.py\", line 1634, in latest\n    if not avail[pkg]:\nKeyError: 'postfix'\n",
               "name": "postfix",
               "start_time": "11:41:28.124873",
               "result": false,
               "duration": 15298.145,
               "__run_num__": 0,
               "changes": {},
               "__id__": "latest-state"
           }
       }
   }

Tests written?

No

@cachedout
cachedout merged commit d7798c5 into saltstack:develop Oct 24, 2016
@cachedout

Copy link
Copy Markdown
Contributor

Thanks, @dincamihai

@dincamihai

Copy link
Copy Markdown
Contributor Author

Thanks for merging, @cachedout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants