diff options
author | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2019-04-11 15:12:14 +0530 |
---|---|---|
committer | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2019-06-11 15:18:11 +0530 |
commit | 797778eeb2997d34af7fd3760195f7f8d08470f4 (patch) | |
tree | ba457ff6a7b2d6367a1503ec2969913b1e64a7ca /targetcli | |
parent | ad37f94ae72d0e3d5963ce182e2897c84af9c039 (diff) | |
download | targetcli-797778eeb2997d34af7fd3760195f7f8d08470f4.tar.gz |
targetcli: way to enable targetclid as default choice
$ targetcli set global
GLOBAL CONFIG GROUP
[...]
auto_use_daemon=bool
If true, commands will be sent to targetclid.
[...]
$ targetcli set global auto_use_daemon=True
Parameter auto_use_daemon is now 'true'.
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Diffstat (limited to 'targetcli')
-rw-r--r-- | targetcli/ui_node.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/targetcli/ui_node.py b/targetcli/ui_node.py index a6982f1..4cb09ed 100644 --- a/targetcli/ui_node.py +++ b/targetcli/ui_node.py @@ -49,6 +49,9 @@ class UINode(ConfigNode): self.define_config_group_param( 'global', 'max_backup_files', 'string', 'Max no. of configurations to be backed up in /etc/target/backup/ directory.') + self.define_config_group_param( + 'global', 'auto_use_daemon', 'bool', + 'If true, commands will be sent to targetclid.') def assert_root(self): ''' |