salt icon indicating copy to clipboard operation
salt copied to clipboard

about OpenStack vm grains conflict

Open WangWenchao opened this issue 8 years ago • 2 comments

Description of Issue/Question

OpenStack vm grain

salt-call grains.item productname virtual

local:
    ----------
    productname:
        OpenStack Nova
    virtual:
        physical

Versions Report

salt-minion 2016.3.3 (Boron)

But I check the latest salt code find the file grain/core function '_virtual(osdata) ' is the same

help to fix just add the OpenStack judgement bellow dmidecode bellow line 808:

            if 'OpenStack' in output:
                grains['virtual'] = 'OpenStack'

WangWenchao avatar Aug 08 '18 08:08 WangWenchao

seems you have a solid understanding of a fix want to submit as a PR?

Ch3LL avatar Aug 08 '18 16:08 Ch3LL

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.

stale[bot] avatar Jan 10 '20 07:01 stale[bot]