Skip to content

Commit f530da3

Browse files
Update services/secondary-storage/server/src/main/java/org/apache/cloudstack/storage/resource/NfsSecondaryStorageResource.java
Co-authored-by: Wei Zhou <weizhou@apache.org>
1 parent f4d5db0 commit f530da3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/secondary-storage/server/src/main/java/org/apache/cloudstack/storage/resource/NfsSecondaryStorageResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2314,7 +2314,7 @@ private boolean ruleNeedsAdding(String rule) {
23142314
Script command = new Script("/bin/bash", s_logger);
23152315
command.add("-c");
23162316
command.add("iptables -C");
2317-
command.add("rule");
2317+
command.add(rule);
23182318

23192319
String r1 = command.execute();
23202320
return (r1 != null && r1.contains("iptables: Bad rule (does a matching rule exist in that chain?)."));

0 commit comments

Comments
 (0)