mirror of
https://github.com/democratic-csi/democratic-csi.git
synced 2026-10-04 16:01:45 +02:00
fix modifying by reference
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
This commit is contained in:
+2
-2
@@ -148,14 +148,14 @@ class Mount {
|
||||
async getMountDetails(path, extraOutputProperties = []) {
|
||||
const mount = this;
|
||||
let args = [];
|
||||
const common_options = FINDMNT_COMMON_OPTIONS;
|
||||
const common_options = JSON.parse(JSON.stringify(FINDMNT_COMMON_OPTIONS));
|
||||
if (extraOutputProperties.length > 0) {
|
||||
common_options[1] =
|
||||
common_options[1] + "," + extraOutputProperties.join(",");
|
||||
}
|
||||
|
||||
args = args.concat(["--mountpoint", path]);
|
||||
args = args.concat(FINDMNT_COMMON_OPTIONS);
|
||||
args = args.concat(common_options);
|
||||
let result;
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user