Traceback (most recent call last):
File "./cephadm", line 4452, in <module>
if args.func != command_check_host:
AttributeError: 'Namespace' object has no attribute 'func'
Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit
2ebb9373b52342eb8c523866e5852d2b8bf44e58)
sys.stderr.write('ERROR: cephadm should be run as root\n')
sys.exit(1)
+ if 'func' not in args:
+ sys.stderr.write('No command specified; pass -h or --help for usage\n')
+ sys.exit(1)
+
# podman or docker?
if args.func != command_check_host:
if args.docker:
sys.stderr.write('Unable to locate any of %s\n' % CONTAINER_PREFERENCE)
sys.exit(1)
- if 'func' not in args:
- sys.stderr.write('No command specified; pass -h or --help for usage\n')
- sys.exit(1)
-
try:
r = args.func()
except Error as e: