mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
zulip-puppet-apply: Work around broken Puppet on Ubuntu 22.04.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Alex Vandiver
parent
814abf6764
commit
25c87cc7da
@@ -65,6 +65,8 @@ puppet_env["FACTER_zulip_scripts_path"] = scripts_path
|
||||
# This is to suppress Puppet warnings with ruby 2.7.
|
||||
if (distro_info["ID"], distro_info["VERSION_ID"]) in [("ubuntu", "20.04")]:
|
||||
puppet_env["RUBYOPT"] = "-W0"
|
||||
if (distro_info["ID"], distro_info["VERSION_ID"]) in [("ubuntu", "22.04")]:
|
||||
puppet_env["RUBYOPT"] = "-r " + os.path.join(scripts_path, "lib", "ruby3hack.rb")
|
||||
|
||||
if not args.noop and not args.force:
|
||||
# --noop does not work with --detailed-exitcodes; see https://tickets.puppetlabs.com/browse/PUP-686
|
||||
|
Reference in New Issue
Block a user