Commit 8cc17e45 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Device component - IETF Slice Driver:

- Code cleanup
parent fc79d0d3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -164,7 +164,7 @@ class IetfSliceDriver(_Driver):
                    self.tac.create_slice(resource_value)
                    results.append((resource_key, True))
                except Exception as e:
                    MSG = 'Unhandled error processing {:s}: resource_key({:s})'
                    MSG = 'Unhandled error processing SET {:s}: resource_key({:s})'
                    LOGGER.exception(MSG.format(str_resource_name, str(resource_key)))
                    results.append((resource_key, e))
        return results
@@ -190,7 +190,7 @@ class IetfSliceDriver(_Driver):
                    self.tac.delete_slice(slice_name)
                    results.append((resource_key, True))
                except Exception as e:
                    MSG = 'Unhandled error processing {:s}: resource_key({:s})'
                    MSG = 'Unhandled error processing DELETE {:s}: resource_key({:s})'
                    LOGGER.exception(MSG.format(str_resource_name, str(resource_key)))
                    results.append((resource_key, e))
        return results