Skip to content

Commit f89c4c6

Browse files
austbrbrw
authored andcommitted
(docs) Remove old PQL docs for active node filters
Replace them with docs for filtering for inactive nodes, which are omitted from most queries by default
1 parent 6590f59 commit f89c4c6

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

documentation/api/query/examples-pql.markdown

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ nodes { certname ~ 'green' }
5353

5454
***
5555

56-
### Querying for active nodes
56+
### Querying for inactive nodes
5757

5858
``` ruby
59-
nodes {deactivated is null and expired is null}
59+
nodes { node_state = "inactive" }
6060
```
6161

6262
*Output:*
@@ -68,7 +68,7 @@ nodes {deactivated is null and expired is null}
6868
"catalog_environment": "production",
6969
"catalog_timestamp": "2016-08-15T11:06:26.275Z",
7070
"certname": "foo.com",
71-
"deactivated": null,
71+
"deactivated": "2016-08-17T13:04:41.421Z",
7272
"expired": null,
7373
"facts_environment": "production",
7474
"facts_timestamp": "2016-08-15T11:06:26.140Z",
@@ -321,8 +321,7 @@ inventory[certname] { facts.mcollective.server.collectives.match("\d+") = "dc1"
321321
Show active nodes that have the profile class `Profile::Remote_mgmt` applied to it.
322322

323323
``` ruby
324-
nodes { resources { type = "Class" and title = "Profile::Remote_mgmt" }
325-
and expired is null and deactivated is null}
324+
nodes { resources { type = "Class" and title = "Profile::Remote_mgmt" } }
326325
```
327326

328327
*Output:*

0 commit comments

Comments
 (0)