mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 01:22:00 +00:00
Provide nicer error message on existing name
Packing ontop of an existing profile is not presently supported, provide a clearer indication of this.
This commit is contained in:
parent
016ee3ecb0
commit
9b178c0653
@ -1104,6 +1104,9 @@ def pack_image(args):
|
||||
raise Exception('Full path not supported, supply only the profile name')
|
||||
privdir = os.path.join('/var/lib/confluent/private/os/', outdir)
|
||||
outdir = os.path.join('/var/lib/confluent/public/os/', outdir)
|
||||
if os.path.exists(outdir):
|
||||
sys.stderr.write('Profile already exists, select a different name or delete existing {0}\n'.format(outdir))
|
||||
sys.exit(1)
|
||||
imginfofile = os.path.join(args.scratchdir, 'etc/confluentimg.buildinfo')
|
||||
distpath = None
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user