浏览代码

HDDS-1283. Fix the dynamic documentation of basic s3 client usage. Contributed by Elek, Marton. (#605)

Elek, Márton 6 年之前
父节点
当前提交
16b78622cc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hadoop-ozone/s3gateway/src/main/resources/webapps/static/index.html

+ 1 - 1
hadoop-ozone/s3gateway/src/main/resources/webapps/static/index.html

@@ -68,7 +68,7 @@
 
     <p>For example with aws-cli:</p>
 
-    <pre>aws s3api --endpoint <script>document.write(window.location.href).replace("static/", "")</script> create-bucket --bucket=wordcount</pre>
+    <pre>aws s3api --endpoint <script>document.write(window.location.href.replace("static/", ""))</script> create-bucket --bucket=wordcount</pre>
 
     <p>For more information, please check the <a href="docs">documentation.</a>
     </p>