Compare commits

..

No commits in common. "607bc7b5fe1a017c6150e1c7c6acdb1851e9ffda" and "67bf25a0a0cb4b10540786fc74afb329c5cc1d9f" have entirely different histories.

2 changed files with 15 additions and 22 deletions

View file

@ -97,13 +97,7 @@ def cli():
help="Try to fetch certificates and deploy",
)
@click.option("--skip-master-check", type=bool, is_flag=True)
@click.option(
"--skip-certs",
type=bool,
is_flag=True,
help="Do not fetch certificates",
)
def up(certs_only: bool, skip_master_check: bool, skip_certs: bool):
def up(certs_only: bool, skip_master_check: bool):
"""Deploy the configuration to the cluster
Does the following:
@ -129,21 +123,20 @@ def up(certs_only: bool, skip_master_check: bool, skip_certs: bool):
Path(CONFIG["dehydrated_dir"]) / "domains.txt",
)
if not skip_certs:
ec, stdout = sysaction.run_shell(
(
str(dehydrated_dir / "dehydrated.sh"),
"-c",
*(["-g"] if certs_only else []),
),
window_height=5,
ec, stdout = sysaction.run_shell(
(
str(dehydrated_dir / "dehydrated.sh"),
"-c",
*(["-g"] if certs_only else []),
),
window_height=5,
)
if ec != 0:
log = Path(tempfile.mktemp())
log.write_text(stdout)
raise NccException(
f"dehydrated returned {ec} (log: {click.format_filename(log)})"
)
if ec != 0:
log = Path(tempfile.mktemp())
log.write_text(stdout)
raise NccException(
f"dehydrated returned {ec} (log: {click.format_filename(log)})"
)
if not certs_only:
ec, stdout = sysaction.run_shell(

View file

@ -2,7 +2,7 @@ from setuptools import setup
setup(
name='ncc',
version='1.1.0',
version='1.0.2',
packages=['ncc'],
install_requires=[
'click',