-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: check status created a machine-id file (#3965)
* feat: add machine_id_exists method This method returns a boolean whether the machine-id file exists or not. This will be used to check the file before call, generate_machine_id to get the machine-id, as this last method will create a new id if it doesn't exist. Resolves: CCT-161 Signed-off-by: ahitacat <[email protected]> * fix: use machine_id_exists before checking host status When checking registration status, first check if the machine-id file exists. When checking status it is not needed to generate a machine-id file if it doesn't exists. Resolves: CCT-161 Signed-off-by: ahitacat <[email protected]> * fix: Change test that generated id and now use get_machineid Also create a new test to check a new machine id is created if the file does not exists. Signed-off-by: ahitacat <[email protected]> --------- Signed-off-by: ahitacat <[email protected]> (cherry picked from commit 5697ed4)
- Loading branch information
Showing
6 changed files
with
60 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters