| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
I don't envision targetcli taking a lot of cmdline options, so just
implement by looking at sys.argv[1] instead of using getopt or ArgParse.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
If run_cmdline raises an exception, return 1 as exit code and print
exception text to stderr.
Keep running shell.run_interactive until shell._exit is set, logging
error messages.
Overriding execute_command in UINode no longer needed, remove.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
| |
Signed-off-by: Christophe Vu-Brugier <cvubrugier@yahoo.fr>
|
| |
|
|
|
|
|
|
|
|
| |
This patch converts rtslib code copyright from AGPL to the
permissive Apache License 2.0.
It also update copyright owner to Datera, Inc.
Signed-off-by: Nicholas Bellinger <nab@risingtidesystems.com>
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
|
|
|
|
| |
If targetcli is not run for the first time not as root, refresh() will
fail because it can't load modules. This returns a nicer error message
in that case.
See https://bugzilla.redhat.com/show_bug.cgi?id=973852
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Don't raise an exception if we can't set emulate_model_alias, just
print a diagnostic.
Rename ui_set_model_alias to setup_model_alias. 'setup' seems a little
more accurate since we don't always set model alias, it depends on
the preference.
Rename export_backstore_as_model pref to export_backstore_name_as_model.
Add a configshell default for export_backstore_name_as_model, set to True.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
| |
It won't work and will print an ugly message.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
| |
* Do not enter a new object context right after creating it by default.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
[original comments from 5bcef69]
* Now displaying targetcli / rtslib version on startup
* Retained only copyright notice.
[end]
fb changes:
- only display targetcli version, we don't have rtslib version in code
- move later to only display if entering shell
- remove extraneous copyright verbiage
- add "and others" to be explicit about our derived-work status
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
| |
Defaulted to true.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
|
| |
Check the commandline and only enter interactive shell if no additional
parameters were given. If parameters were given, execute them and exit.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
|
|
| |
Don't need to worry about legacy backstores.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
| |
|