a
This commit is contained in:
parent
dc799bfab1
commit
b18dbe2fa8
2 changed files with 6 additions and 2 deletions
|
|
@ -13,7 +13,8 @@ def image():
|
|||
@click.option("--path", required=True)
|
||||
@click.option("--base_dir", required=True)
|
||||
@click.option("--etcd_url", required=True)
|
||||
def setup(path, base_dir, etcd_url):
|
||||
@click.option("--without_ceph", default=False, type=bool)
|
||||
def setup(path, base_dir, etcd_url, without_ceph):
|
||||
os.chdir(path)
|
||||
|
||||
repo_name = "ucloud-image-scanner"
|
||||
|
|
@ -28,6 +29,7 @@ def setup(path, base_dir, etcd_url):
|
|||
content = (
|
||||
f"BASE_DIR={base_dir}\n"
|
||||
f"ETCD_URL={etcd_url}\n"
|
||||
f"WITHOUT_CEPH={without_ceph}"
|
||||
)
|
||||
f.writelines(content)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue