'Convert a generic volume group object to a cg object.'

def from_group(self, group):

    self.id = group.id
    self.user_id = group.user_id
    self.project_id = group.project_id
    self.cluster_name = group.cluster_name
    self.host = group.host
    self.availability_zone = group.availability_zone
    self.name = group.name
    self.description = group.description
    self.volume_type_id = ''
    for v_type in group.volume_types:
        self.volume_type_id += (v_type.id + ',')
    self.status = group.status
    self.cgsnapshot_id = group.group_snapshot_id
    self.source_cgid = group.source_group_id
