diff --git a/robottelo/cli/simple_content_access.py b/robottelo/cli/simple_content_access.py index d5e471b824b..ab3d155fd69 100644 --- a/robottelo/cli/simple_content_access.py +++ b/robottelo/cli/simple_content_access.py @@ -30,7 +30,9 @@ class SimpleContentAccess(Base): def disable(cls, options=None, timeout=None): """Disable simple content access for a manifest""" cls.command_sub = 'disable' - return cls.execute(cls._construct_command(options), ignore_stderr=True, timeout=timeout) + return cls.execute( + cls._construct_command(options), return_raw_response=True, timeout=timeout + ) @classmethod def enable(cls, options=None, timeout=None): diff --git a/tests/foreman/cli/test_subscription.py b/tests/foreman/cli/test_subscription.py index 1068eb47fdb..76a4819acc5 100644 --- a/tests/foreman/cli/test_subscription.py +++ b/tests/foreman/cli/test_subscription.py @@ -303,9 +303,7 @@ def test_positive_prepare_for_sca_only_hammer(function_org, target_sat): 'Simple Content Access will be required for all organizations in the next release' in str(org_results.stderr) ) - sca_results = target_sat.execute( - f'hammer simple-content-access disable --organization-id {function_org.id}' - ) + sca_results = target_sat.cli.SimpleContentAccess.disable({'organization-id': function_org.id}) assert ( 'Simple Content Access will be required for all organizations in the next release' in str(sca_results.stderr)