Foreman-maintain restore fails with "foremani-installer ERROR: Unrecognised option '--reset'"

Problem:
foreman-maintain restore fails with foreman-installer ERROR: Unrecognised option ‘–reset’

Expected outcome:
my entire katello/foreman is restored to the backup state

Foreman and Proxy versions:
Foreman: 2.2.1-1.el7
foreman-proxy.noarch 2.2.1-1.el7
Katello : 3.17.0-1.el7
foreman-installer-katello.noarch 1:2.2.1-1.el7

Foreman and Proxy plugin versions:

Distribution and version:

Other relevant data:

[root@puppet ~]# yes | foreman-maintain restore $RESTORE_DIR
Running Restore backup
================================================================================
Check if command is run as root user:                                 [OK]
--------------------------------------------------------------------------------
Validate backup has appropriate files:                                [OK]
--------------------------------------------------------------------------------
Confirm dropping databases and running restore:

WARNING: This script will drop and restore your database.
Your existing installation will be replaced with the backup database.
Once this operation is complete there is no going back.
                                                                      [OK]
--------------------------------------------------------------------------------
Validate hostname is the same as backup:                              [OK]
--------------------------------------------------------------------------------
Setting file security:
- Restoring SELinux context                                           [OK]
--------------------------------------------------------------------------------
Restore configs from backup:
\ Restoring configs                                                   [OK]
--------------------------------------------------------------------------------
Ensure restored MongoDB storage engine matches the current DB:        [OK]
--------------------------------------------------------------------------------
Run installer reset:
- Installer reset                                                     [FAIL]
Failed executing yes | foreman-installer -v --reset , exit status 1:
 ERROR: Unrecognised option '--reset'

See: 'foreman-installer --help'
--------------------------------------------------------------------------------
Scenario [Restore backup] failed.

Hello,

This should be happening as --reset flag has been changed to --reset-data, I am raising high priority issue for this, expect foreman-maintain release within couple of days. Until we have version bump in core(2.2) you can use version in nightly, I will add further details on this thread.
_
Amit Upadhye

Issue raised: Bug #31394: Backup restore fails with Unrecognised option '--reset' - Foreman Maintain - Foreman

Hello,

The fix for this issue is present in 0.7.0 version. The rpm/develop(nightly) pr has been merged, or you can wait for 2.2.2 which is planned for next week.