Skip to content

Commit

Permalink
fix string templating (#261)
Browse files Browse the repository at this point in the history
* fix string templating

* bump lib patches
  • Loading branch information
simskij authored Apr 25, 2022
1 parent 387c984 commit 791aecd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/charms/prometheus_k8s/v0/prometheus_remote_write.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

# Increment this PATCH version before using `charmcraft publish-lib` or reset
# to 0 if you are raising the major API version
LIBPATCH = 3
LIBPATCH = 4


logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -1136,7 +1136,7 @@ def _apply_label_matcher(self, expression, topology):
try:
return self._exec(args)
except Exception as e:
logger.debug('Applying the expression failed: "{}", falling back to the original', e)
logger.debug('Applying the expression failed: "%s", falling back to the original', e)
return expression

def _get_transformer_path(self) -> Optional[Path]:
Expand Down
4 changes: 2 additions & 2 deletions lib/charms/prometheus_k8s/v0/prometheus_scrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def _on_scrape_targets_changed(self, event):

# Increment this PATCH version before using `charmcraft publish-lib` or reset
# to 0 if you are raising the major API version
LIBPATCH = 17
LIBPATCH = 18

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -2244,7 +2244,7 @@ def _apply_label_matcher(self, expression, topology):
try:
return self._exec(args)
except Exception as e:
logger.debug('Applying the expression failed: "{}", falling back to the original', e)
logger.debug('Applying the expression failed: "%s", falling back to the original', e)
return expression

def _get_transformer_path(self) -> Optional[Path]:
Expand Down

0 comments on commit 791aecd

Please sign in to comment.