Page MenuHomeDevCentral

Allow to determine if a node has a role
ClosedPublic

Authored by dereckson on Nov 1 2017, 18:59.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Sep 7, 01:07
Unknown Object (File)
Sat, Sep 6, 04:23
Unknown Object (File)
Fri, Sep 5, 16:10
Unknown Object (File)
Fri, Sep 5, 08:15
Unknown Object (File)
Sun, Aug 31, 13:44
Unknown Object (File)
Fri, Aug 29, 17:56
Unknown Object (File)
Thu, Aug 28, 12:00
Unknown Object (File)
Thu, Aug 28, 01:28
Subscribers
None

Details

Summary

Ref T1275

Test Plan

salt * node.has_role devserver

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Passed
Unit
No Test Coverage
Branch
master
Build Status
Buildable 1806
Build 2054: arc lint + arc unit

Event Timeline

dereckson added inline comments.
_modules/node.py
85

'node' virtual returned False: name 'Node' is not defined

dereckson marked an inline comment as done.

s/Node/None

If we return something that would be better

$ pm go ops
$ arc patch D1146
$ salt-call --local node.has_role devserver
local:
    True
$ salt-call --local node.has_role devserverz
local:
    False
This revision is now accepted and ready to land.Nov 1 2017, 21:40
This revision was automatically updated to reflect the committed changes.