UDST/ansible-conda

Change reported when no update - `conda` ignores trailing ".0"s

Opened this issue · 0 comments

If a version number has extra ".0" precision - e.g. only version 0.8 exists, yet version 0.8.0 is requested - conda happily ignores the extra ".0"s.

However, this module still reports a change when this happens, e.g.:

TASK [hail : install conda prerequisites] ******************************************************************************************************************************************************************
changed: [localhost] => {
    "changed": true,
    "invocation": {
        "module_args": {
            "channels": null,
            "executable": "/usr/local/anaconda-4.4.0/bin/conda",
            "extra_args": null,
            "name": "seaborn",
            "state": "present",
            "version": "0.8.0"
        }
    },
    "name": "seaborn",
    "stderr": "",
    "stderr_lines": [],
    "stdout": "Fetching package metadata .........\nSolving package specifications: .\n\n# All requested packages already installed.\n# packages in environment at /usr/local/Anaconda2-4.4.0-Linux-x86_64:\n#\nseaborn                   0.8                      py27_0  \n",
    "stdout_lines": [
        "Fetching package metadata .........",
        "Solving package specifications: .",
        "",
        "# All requested packages already installed.",
        "# packages in environment at /usr/local/Anaconda2-4.4.0-Linux-x86_64:",
        "#",
        "seaborn                   0.8                      py27_0  "
    ],
    "version": "0.8.0"
}

It's worth noting that conda install seaborn=0.8.1 leads to a PackageNotFoundError error.