mirror of
https://github.com/ceph/ceph
synced 2025-01-01 08:32:24 +00:00
Merge pull request #34529 from maran/master
cephadm: warn when no valid version arguments are supplied to add-repo Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
This commit is contained in:
commit
a07f2d6ebe
@ -3992,6 +3992,8 @@ def create_packager(stable=None, version=None, branch=None, commit=None):
|
||||
def command_add_repo():
|
||||
if args.version and args.release:
|
||||
raise Error('you can specify either --release or --version but not both')
|
||||
if not args.version and not args.release and not args.dev and not args.dev_commit:
|
||||
raise Error('please supply a --release, --version, --dev or --dev-commit argument')
|
||||
if args.version:
|
||||
try:
|
||||
(x, y, z) = args.version.split('.')
|
||||
|
Loading…
Reference in New Issue
Block a user