hotfix: make version dynamic in CLI credentials shortcode

pull/4226/head^2
Scott Anderson 2022-07-19 09:05:34 -06:00
parent 203a573632
commit ae312b2d98
1 changed files with 2 additions and 1 deletions

View File

@ -1,8 +1,9 @@
{{- $currentVersion := index (findRE "[^/]+.*?" .Page.RelPermalink) 1 -}}
<div class="note block">
<h4 id="authentication-credentials">Authentication credentials</h4>
<p>
The examples below assume your InfluxDB <strong>host</strong>, <strong>organization</strong>, and <strong>token</strong> are
provided by the <a href="/influxdb/v2.0/reference/cli/influx/#provide-required-authentication-credentials">active <code>influx</code> CLI configuration</a>.
provided by the <a href="/influxdb/{{ $currentVersion }}/reference/cli/influx/#provide-required-authentication-credentials">active <code>influx</code> CLI configuration</a>.
If you do not have a CLI configuration set up, use the appropriate flags to provide these required credentials.
</p>
</div>