parent
a3cb2c8c31
commit
8bc64a6493
@ -13,10 +13,6 @@ def unregister_app(app):
|
|||||||
# Used by package uninstall.sh script
|
# Used by package uninstall.sh script
|
||||||
vmmgr.unregister_app(app)
|
vmmgr.unregister_app(app)
|
||||||
|
|
||||||
def register_prop(app, key, value):
|
|
||||||
# Used by package install.sh script
|
|
||||||
config.set_app(app, key, value)
|
|
||||||
|
|
||||||
def rebuild_issue():
|
def rebuild_issue():
|
||||||
# Used by inittab on VM startup
|
# Used by inittab on VM startup
|
||||||
vmmgr.rebuild_issue()
|
vmmgr.rebuild_issue()
|
||||||
@ -42,12 +38,6 @@ parser_unregister_app = subparsers.add_parser('unregister-app')
|
|||||||
parser_unregister_app.set_defaults(action=unregister_app)
|
parser_unregister_app.set_defaults(action=unregister_app)
|
||||||
parser_unregister_app.add_argument('app', help='Application name')
|
parser_unregister_app.add_argument('app', help='Application name')
|
||||||
|
|
||||||
parser_register_prop = subparsers.add_parser('register-prop')
|
|
||||||
parser_register_prop.set_defaults(action=register_prop)
|
|
||||||
parser_register_prop.add_argument('app', help='Application name')
|
|
||||||
parser_register_prop.add_argument('key', help='Property name')
|
|
||||||
parser_register_prop.add_argument('value', help='Property value')
|
|
||||||
|
|
||||||
parser_rebuild_issue = subparsers.add_parser('rebuild-issue')
|
parser_rebuild_issue = subparsers.add_parser('rebuild-issue')
|
||||||
parser_rebuild_issue.set_defaults(action=rebuild_issue)
|
parser_rebuild_issue.set_defaults(action=rebuild_issue)
|
||||||
|
|
||||||
@ -59,8 +49,6 @@ if args.action is register_app:
|
|||||||
register_app(args.app, args.host, args.login, args.password)
|
register_app(args.app, args.host, args.login, args.password)
|
||||||
elif args.action is unregister_app:
|
elif args.action is unregister_app:
|
||||||
unregister_app(args.app)
|
unregister_app(args.app)
|
||||||
elif args.action is register_prop:
|
|
||||||
register_prop(args.app, args.key, args.value)
|
|
||||||
elif args.action is rebuild_issue:
|
elif args.action is rebuild_issue:
|
||||||
rebuild_issue()
|
rebuild_issue()
|
||||||
elif args.action is init:
|
elif args.action is init:
|
||||||
|
Loading…
Reference in New Issue
Block a user