def _calculate_dataset_change(self, discovered_dataset, desired_dataset):
        # If the configuration doesn't know about a dataset,
        # we detach it.
        desired_state = (desired_dataset.state
                         if desired_dataset is not None
                         else DatasetStates.NON_MANIFEST)
        # If we haven't discovered a dataset, then it is doesn't
        # exist.
        discovered_state = (discovered_dataset.state
                            if discovered_dataset is not None
                            else DatasetStates.NON_EXISTENT)
        if desired_state != discovered_state:
            transition = self.transitions[desired_state][discovered_state]
            return transition.from_state_and_config(
                discovered_dataset=discovered_dataset,
                desired_dataset=desired_dataset,
            )
        else:
            return NOTHING_TO_DO
service-profile-show.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/node/agents/blockdevice.py/BlockDeviceCalculator._calculate_dataset_change--crossover with--dataset/ETHPy150Open openstack/python-group-based-policy-client/gbpclient/tests/unit/test_cli20_service_profile.py/CLITestV20ServiceProfileJSON.test_show_service_profile_id_name