diff --git a/robottelo/cli/contentview.py b/robottelo/cli/contentview.py index fb8001f89d..17732f3761 100644 --- a/robottelo/cli/contentview.py +++ b/robottelo/cli/contentview.py @@ -43,7 +43,7 @@ class ContentViewFilterRule(Base): command_base = 'content-view filter rule' @classmethod - def create(cls, options=None): + def create(cls, options=None, timeout=None): """Create a content-view filter rule""" if ( not options @@ -55,7 +55,7 @@ def create(cls, options=None): ' "content-view-filter" or "content-view-filter-id".' ) cls.command_sub = 'create' - result = cls.execute(cls._construct_command(options), output_format='csv') + result = cls.execute(cls._construct_command(options), output_format='csv', timeout=timeout) # Extract new CV filter rule ID if it was successfully created if len(result) > 0 and 'id' in result[0]: diff --git a/robottelo/cli/host.py b/robottelo/cli/host.py index 05f042f9dd..dc45c9db88 100644 --- a/robottelo/cli/host.py +++ b/robottelo/cli/host.py @@ -478,10 +478,10 @@ class HostInterface(Base): command_base = 'host interface' @classmethod - def create(cls, options=None): + def create(cls, options=None, timeout=None): """Create new network interface for host""" cls.command_sub = 'create' - cls.execute(cls._construct_command(options), output_format='csv') + cls.execute(cls._construct_command(options), output_format='csv', timeout=timeout) class HostTraces(Base): diff --git a/robottelo/cli/report_template.py b/robottelo/cli/report_template.py index 962c5929bc..50646e3cd4 100644 --- a/robottelo/cli/report_template.py +++ b/robottelo/cli/report_template.py @@ -36,7 +36,7 @@ class ReportTemplate(Base): command_base = 'report-template' @classmethod - def create(cls, options=None): + def create(cls, options=None, timeout=None): """ Creates a new record using the arguments passed via dictionary. """ @@ -73,7 +73,7 @@ def create(cls, options=None): options['file'] = layout - result = cls.execute(cls._construct_command(options), output_format='csv') + result = cls.execute(cls._construct_command(options), output_format='csv', timeout=timeout) # Extract new object ID if it was successfully created if len(result) > 0 and 'id' in result[0]: diff --git a/robottelo/cli/repository.py b/robottelo/cli/repository.py index 94fa8baa18..d5ac3caf7a 100644 --- a/robottelo/cli/repository.py +++ b/robottelo/cli/repository.py @@ -31,12 +31,12 @@ class Repository(Base): command_requires_org = True @classmethod - def create(cls, options=None): + def create(cls, options=None, timeout=None): """Create a custom repository""" cls.command_requires_org = False try: - result = super().create(options) + result = super().create(options, timeout) finally: cls.command_requires_org = True diff --git a/robottelo/cli/syncplan.py b/robottelo/cli/syncplan.py index 151a72acb8..9894335ab0 100644 --- a/robottelo/cli/syncplan.py +++ b/robottelo/cli/syncplan.py @@ -26,11 +26,11 @@ class SyncPlan(Base): command_base = 'sync-plan' @classmethod - def create(cls, options=None): + def create(cls, options=None, timeout=None): """Create a SyncPlan""" cls.command_sub = 'create' if options.get('interval') == 'custom cron' and options.get('cron-expression') is None: raise CLIError('Missing "cron-expression" option for "custom cron" interval.') - return super().create(options) + return super().create(options, timeout) diff --git a/robottelo/cli/template_input.py b/robottelo/cli/template_input.py index cfe548384c..9b861dbf9a 100644 --- a/robottelo/cli/template_input.py +++ b/robottelo/cli/template_input.py @@ -26,7 +26,7 @@ class TemplateInput(Base): command_base = 'template-input' @classmethod - def create(cls, options=None): + def create(cls, options=None, timeout=None): """ Creates a new record using the arguments passed via dictionary. """ @@ -36,7 +36,7 @@ def create(cls, options=None): if options is None: options = {} - result = cls.execute(cls._construct_command(options), output_format='csv') + result = cls.execute(cls._construct_command(options), output_format='csv', timeout=timeout) # Extract new object ID if it was successfully created if len(result) > 0 and 'id' in result[0]: diff --git a/robottelo/cli/usergroup.py b/robottelo/cli/usergroup.py index cd40ac96bc..f29ad3f557 100644 --- a/robottelo/cli/usergroup.py +++ b/robottelo/cli/usergroup.py @@ -148,10 +148,10 @@ def refresh(cls, options=None): return cls.execute(cls._construct_command(options), output_format='csv') @classmethod - def create(cls, options=None): + def create(cls, options=None, timeout=None): """Create external user group""" cls.command_sub = 'create' - result = cls.execute(cls._construct_command(options), output_format='csv') + result = cls.execute(cls._construct_command(options), output_format='csv', timeout=timeout) # External user group can only be fetched by specifying both id and # user group id it is linked to if len(result) > 0 and 'id' in result[0]: diff --git a/robottelo/cli/webhook.py b/robottelo/cli/webhook.py index c7b93f76d9..ea37b6c777 100644 --- a/robottelo/cli/webhook.py +++ b/robottelo/cli/webhook.py @@ -22,7 +22,7 @@ class Webhook(Base): command_base = 'webhook' @classmethod - def create(cls, options=None): + def create(cls, options=None, timeout=None): """Create a webhook""" cls.command_sub = 'create' @@ -41,4 +41,4 @@ def create(cls, options=None): 'See See "hammer webhook create --help" for the list of supported methods' ) - return super().create(options) + return super().create(options, timeout)