This is an automated email from the ASF dual-hosted git repository.
weichiu pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/trunk by this push:
new f114a9034d AMBARI-26444: Build is broken: infra_solr.py:172:1:
SyntaxError: Unexpected indentation (#3980)
f114a9034d is described below
commit f114a9034d5e2203156f31b506d3db821a272cad
Author: Jhen-Yung Hsu <[email protected]>
AuthorDate: Tue Apr 15 23:26:27 2025 +0800
AMBARI-26444: Build is broken: infra_solr.py:172:1: SyntaxError: Unexpected
indentation (#3980)
Co-authored-by: yungh <[email protected]>
---
.../3.0.0/package/scripts/infra_solr.py | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git
a/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/infra_solr.py
b/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/infra_solr.py
index b5e09b9a99..545605c0b8 100755
---
a/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/infra_solr.py
+++
b/ambari-server/src/main/resources/common-services/AMBARI_INFRA_SOLR/3.0.0/package/scripts/infra_solr.py
@@ -169,17 +169,17 @@ class InfraSolr(Script):
def disable_security(self, env):
import params
- if not params.infra_solr_znode:
- Logger.info("Skipping reverting ACL")
- return
- zkmigrator = ZkMigrator(
- zk_host=params.zk_quorum,
- java_exec=params.ambari_java_home,
- java_home=params.ambari_java_home,
- jaas_file=params.infra_solr_jaas_file,
- user=params.infra_solr_user,
- )
- zkmigrator.set_acls(params.infra_solr_znode, "world:anyone:crdwa")
+ if not params.infra_solr_znode:
+ Logger.info("Skipping reverting ACL")
+ return
+ zkmigrator = ZkMigrator(
+ zk_host=params.zk_quorum,
+ java_exec=params.ambari_java_home,
+ java_home=params.ambari_java_home,
+ jaas_file=params.infra_solr_jaas_file,
+ user=params.infra_solr_user,
+ )
+ zkmigrator.set_acls(params.infra_solr_znode, "world:anyone:crdwa")
def backup(self, env):
backup_collection(env)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]