Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions core/src/main/scala/kafka/admin/AclCommand.scala
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ object AclCommand {
}

private def confirmAction(opts: AclCommandOptions, msg: String): Boolean = {
if (opts.options.has(opts.yesOpt))
if (opts.options.has(opts.forceOpt))
return true
println(msg)
Console.readLine().equalsIgnoreCase("y")
Expand Down Expand Up @@ -331,7 +331,7 @@ object AclCommand {

val helpOpt = parser.accepts("help", "Print usage information.")

val yesOpt = parser.accepts("yes", "Assume Yes to all queries and do not prompt.")
val forceOpt = parser.accepts("force", "Assume Yes to all queries and do not prompt.")

val options = parser.parse(args: _*)

Expand Down
2 changes: 1 addition & 1 deletion core/src/test/scala/unit/kafka/admin/AclCommandTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class AclCommandTest extends ZooKeeperTestHarness with Logging {

private def testRemove(resources: Set[Resource], resourceCmd: Array[String], args: Array[String], brokerProps: Properties) {
for (resource <- resources) {
AclCommand.main(args ++ resourceCmd :+ "--remove" :+ "--yes")
AclCommand.main(args ++ resourceCmd :+ "--remove" :+ "--force")
withAuthorizer(brokerProps) { authorizer =>
TestUtils.waitAndVerifyAcls(Set.empty[Acl], authorizer, resource)
}
Expand Down
2 changes: 1 addition & 1 deletion docs/security.html
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ <h4><a id="security_authz_cli" href="#security_authz_cli">Command Line Interface
<td>Convenience</td>
</tr>
<tr>
<td>--yes</td>
<td>--force</td>
<td> Convenience option to assume yes to all queries and do not prompt.</td>
<td></td>
<td>Convenience</td>
Expand Down