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
F8746450: D1146.diff
Mon, May 19, 11:41
Unknown Object (File)
Wed, May 7, 08:07
Unknown Object (File)
Tue, May 6, 16:51
Unknown Object (File)
Thu, May 1, 15:49
Unknown Object (File)
Thu, May 1, 05:18
Unknown Object (File)
Wed, Apr 30, 08:27
Unknown Object (File)
Wed, Apr 30, 01:05
Unknown Object (File)
Mon, Apr 28, 22:40
Subscribers
None

Details

Summary

Ref T1275

Test Plan

salt * node.has_role devserver

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.