4
4
import logging
5
5
from datetime import datetime
6
6
7
- import pypuppetdb
8
7
from pypuppetdb .QueryBuilder import (EqualsOperator )
9
8
from pypuppetdb .api .base import BaseAPI
10
9
from pypuppetdb .types import (Catalog , Edge , Event , Fact , Inventory ,
@@ -39,7 +38,7 @@ def nodes(self, unreported=2, with_status=False, with_event_numbers=True,
39
38
This provides performance benefits as potentially
40
39
slow event-counts query is omitted completely.
41
40
:type with_event_numbers: :bool:
42
- :param \*\ *kwargs: The rest of the keyword arguments are passed
41
+ :param * *kwargs: The rest of the keyword arguments are passed
43
42
to the _query function
44
43
45
44
:returns: A generator yieling Nodes.
@@ -81,7 +80,7 @@ def node(self, name):
81
80
def edges (self , ** kwargs ):
82
81
"""Get the known catalog edges, formed between two resources.
83
82
84
- :param \*\ *kwargs: The rest of the keyword arguments are passed
83
+ :param * *kwargs: The rest of the keyword arguments are passed
85
84
to the _query function.
86
85
87
86
:returns: A generating yielding Edges.
@@ -95,7 +94,7 @@ def edges(self, **kwargs):
95
94
def environments (self , ** kwargs ):
96
95
"""Get all known environments from Puppetdb.
97
96
98
- :param \*\ *kwargs: The rest of the keyword arguments are passed
97
+ :param * *kwargs: The rest of the keyword arguments are passed
99
98
to the _query function.
100
99
101
100
:returns: A list of dictionaries containing the results.
@@ -112,7 +111,7 @@ def facts(self, name=None, value=None, **kwargs):
112
111
match this value. Use of this parameter requires the `name`\
113
112
parameter be set.
114
113
:type value: :obj:`string`
115
- :param \*\ *kwargs: The rest of the keyword arguments are passed
114
+ :param * *kwargs: The rest of the keyword arguments are passed
116
115
to the _query function
117
116
118
117
:returns: A generator yielding Facts.
@@ -132,7 +131,7 @@ def facts(self, name=None, value=None, **kwargs):
132
131
def factsets (self , ** kwargs ):
133
132
"""Returns a set of all facts or for a single certname.
134
133
135
- :param \*\ *kwargs: The rest of the keyword arguments are passed
134
+ :param * *kwargs: The rest of the keyword arguments are passed
136
135
to the _query function.
137
136
138
137
:returns: A list of dictionaries containg the results.
@@ -145,7 +144,7 @@ def fact_contents(self, **kwargs):
145
144
to descend into structured facts and retreive the values associated
146
145
with fact paths.
147
146
148
- :param \*\ *kwargs: The rest of the keyword arguments are passed
147
+ :param * *kwargs: The rest of the keyword arguments are passed
149
148
to the _query function.
150
149
151
150
:returns: A list of dictionaries containg the results.
@@ -159,7 +158,7 @@ def fact_paths(self, **kwargs):
159
158
facts and may be used for building GUI autocompletions or other
160
159
applications that require a basic top-level view of fact paths.
161
160
162
- :param \*\ *kwargs: The rest of the keyword arguments are passed
161
+ :param * *kwargs: The rest of the keyword arguments are passed
163
162
to the _query function.
164
163
165
164
:returns: A list of dictionaries containg the results.
@@ -179,7 +178,7 @@ def resources(self, type_=None, title=None, **kwargs):
179
178
'namevar' in the Puppet Manifests. This parameter requires the\
180
179
`type_` parameter be set.
181
180
:type title: :obj:`string`
182
- :param \*\ *kwargs: The rest of the keyword arguments are passed
181
+ :param * *kwargs: The rest of the keyword arguments are passed
183
182
to the _query function
184
183
185
184
:returns: A generator yielding Resources
@@ -218,7 +217,7 @@ def catalogs(self, **kwargs):
218
217
and/or paging parameters for this endpoint to prevent large result
219
218
sets or PuppetDB performance bottlenecks.
220
219
221
- :param \*\ *kwargs: The rest of the keyword arguments are passed
220
+ :param * *kwargs: The rest of the keyword arguments are passed
222
221
to the _query function.
223
222
224
223
:returns: A generator yielding Catalogs
@@ -240,7 +239,7 @@ def events(self, **kwargs):
240
239
endpoint to prevent large result sets or PuppetDB performance
241
240
bottlenecks.
242
241
243
- :param \*\ *kwargs: The rest of the keyword arguments are passed
242
+ :param * *kwargs: The rest of the keyword arguments are passed
244
243
to the _query function
245
244
246
245
:returns: A generator yielding Events
@@ -268,7 +267,7 @@ def event_counts(self, summarize_by, **kwargs):
268
267
`<`, `>=`, and `<=`. Supported fields are
269
268
`failures`, `successes`, `noops`, and `skips`.
270
269
:type count_filter: :obj:`string`
271
- :param \*\ *kwargs: The rest of the keyword arguments are passed
270
+ :param * *kwargs: The rest of the keyword arguments are passed
272
271
to the _query function.
273
272
274
273
:returns: A list of dictionaries containing the results.
@@ -319,7 +318,7 @@ def reports(self, **kwargs):
319
318
prevent large result sets and potential PuppetDB performance
320
319
bottlenecks.
321
320
322
- :param \*\ *kwargs: The rest of the keyword arguments are passed
321
+ :param * *kwargs: The rest of the keyword arguments are passed
323
322
to the _query function
324
323
325
324
:returns: A generating yielding Reports
@@ -334,7 +333,7 @@ def inventory(self, **kwargs):
334
333
for structured facts instead of using the facts, fact-contents and
335
334
factsets endpoints for many fact-related queries.
336
335
337
- :param \*\ *kwargs: The rest of the keyword arguments are passed
336
+ :param * *kwargs: The rest of the keyword arguments are passed
338
337
to the _query function.
339
338
340
339
:returns: A generator yielding Inventory
0 commit comments