Improve cloud flow checks

Contributes to CL-1222
This commit is contained in:
Ian Paschal 2019-02-13 11:30:31 +01:00
parent 8fecf7fb39
commit d74f4f36bd

View file

@ -419,12 +419,12 @@ class UM3OutputDevicePlugin(OutputDevicePlugin):
return return
# Check 1B: Printer isn't already configured for cloud # Check 1B: Printer isn't already configured for cloud
if active_machine.getMetaDataEntry("cloud_flow_complete", "value") is True: if active_machine.getMetaDataEntry("cloud_flow_complete", False):
Logger.log("d", "Active machine was already configured for cloud.") Logger.log("d", "Active machine was already configured for cloud.")
return return
# Check 2: User did not already say "Don't ask me again" # Check 2: User did not already say "Don't ask me again"
if active_machine.getMetaDataEntry("show_cloud_message", "value") is False: if not active_machine.getMetaDataEntry("show_cloud_message", True):
Logger.log("d", "Active machine shouldn't ask about cloud anymore.") Logger.log("d", "Active machine shouldn't ask about cloud anymore.")
return return