a
This commit is contained in:
parent
ad88f6ba0a
commit
c2c32fe0f1
1 changed files with 4 additions and 2 deletions
|
@ -19,9 +19,10 @@ def image():
|
|||
|
||||
@image.command("setup")
|
||||
@click.option("--path", required=True)
|
||||
@click.option("--base_dir", required=True)
|
||||
@click.option("--etcd_url", required=True)
|
||||
@click.option("--etcd_password", required=True)
|
||||
def setup(path, etcd_url, etcd_password):
|
||||
def setup(path, base_dir, etcd_url, etcd_password):
|
||||
os.chdir(path)
|
||||
|
||||
repo_name = "ucloud-image-scanner"
|
||||
|
@ -30,7 +31,8 @@ def setup(path, etcd_url, etcd_password):
|
|||
f"https://code.ungleich.ch/ungleich-public/{repo_name}.git"
|
||||
)
|
||||
|
||||
content = f"ETCD_URL={etcd_url}\n" \
|
||||
content = f"BASE_DIR={base_dir}\n" \
|
||||
f"ETCD_URL={etcd_url}\n" \
|
||||
f"ETCD_PASSWORD={etcd_password}\n"
|
||||
|
||||
op_result.add(
|
||||
|
|
Loading…
Reference in a new issue