<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update_os_type(self):
 """Update os_type attribute."""

        self.chain.connection.log("Detecting os type")
        os_type = self.driver.get_os_type(self.version_text)
        if os_type:
            self.chain.connection.log("SW Type: {}".format(os_type))
            self.os_type = os_type