Skip to content

Commit

Permalink
publisher: ignore label-fetch on dry-run
Browse files Browse the repository at this point in the history
Page information for a verbose dry-run is fetching label information
(`metadata.labels`) without it being used to provide feedback on a
dry-run. Adjusting the request to exclude this information.

Signed-off-by: James Knight <james.d.knight@live.com>
  • Loading branch information
jdknight committed Jul 25, 2020
1 parent 5fa4a51 commit 91cd379
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinxcontrib/confluencebuilder/publisher.py
Expand Up @@ -351,7 +351,7 @@ def storePage(self, page_name, data, parent_id=None):
ConfluenceLogger.trace('data', data)

if self.dryrun:
_, page = self.getPage(page_name, 'version,ancestors,metadata.labels')
_, page = self.getPage(page_name, 'version,ancestors')

if not page:
self._dryrun('adding new page ' + page_name)
Expand Down

0 comments on commit 91cd379

Please sign in to comment.