8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-27 07:02:26 +00:00

Merge branch 'machine_on_type_vlan' into 'dev'

L'autocreation renvoie l'interface crée

See merge request federez/re2o!212
This commit is contained in:
chirac 2018-08-04 01:19:50 +02:00
commit f168a4f72d

View file

@ -652,7 +652,7 @@ class User(RevMixin, FieldPermissionModelMixin, AbstractBaseUser,
self.notif_auto_newmachine(interface_cible) self.notif_auto_newmachine(interface_cible)
except Exception as error: except Exception as error:
return False, error return False, error
return True, "Ok" return interface_cible, "Ok"
def notif_auto_newmachine(self, interface): def notif_auto_newmachine(self, interface):
"""Notification mail lorsque une machine est automatiquement """Notification mail lorsque une machine est automatiquement