'Copy os release and version from KB to client object.'

def CopyOSReleaseFromKnowledgeBase(self, client):

    if self.state.knowledge_base.os_release:
        os_release = self.state.knowledge_base.os_release
        client.Set(client.Schema.OS_RELEASE(os_release))
        os_version = ('%d.%d' % (self.state.knowledge_base.os_major_version, self.state.knowledge_base.os_minor_version))
        client.Set(client.Schema.OS_VERSION(os_version))
