def _generate_release_name(
chart_name: str
):
+ # check embeded chart (file or dir)
+ if chart_name.startswith('/'):
+ # extract file or directory name
+ chart_name = chart_name[chart_name.rfind('/')+1:]
+ # check URL
+ elif '://' in chart_name:
+ # extract last portion of URL
+ chart_name = chart_name[chart_name.rfind('/')+1:]
+
name = ''
for c in chart_name:
if c.isalpha() or c.isnumeric():
msg = 'Exception executing command: {} -> {}'.format(command, e)
if show_error_log:
self.error(msg)
- return '', -1
+ if raise_exception_on_error:
+ raise e
+ else:
+ return '', -1
def _remote_exec(
self,