Lizenzmanager
Verfasst: 15 Sep 2010, 16:23
Hallo,
Ich habe einen Lizenzpool erstellt aus dem sich die Clients ihren Lizenzschlüssel holen sollen.
Dieser wird auch ausgelesen.
#############################################################################
[5] [15.09.2010 16:05:32] Set $LicenseKey$ = demandLicenseKey ($LicensePool$)
[6] [15.09.2010 16:05:32] Calling opsi service at https://192.168.50.30:4447
[6] [15.09.2010 16:05:32] JSON service request https://192.168.50.30:4447/rpc getAndAssignSoftwareLicenseKey
[6] [15.09.2010 16:05:32] The value of the variable "$LicenseKey$" is now: "12345-12345-12345-12345-12345"
[5] [15.09.2010 16:05:32]
[5] [15.09.2010 16:05:32] Set $ServiceErrorClass$ = getLastServiceErrorClass
[6] [15.09.2010 16:05:32] The value of the variable "$ServiceErrorClass$" is now: "None"
[5] [15.09.2010 16:05:32] comment: Error class: None
[5] [15.09.2010 16:05:32]
[5] [15.09.2010 16:05:32] If
[5] [15.09.2010 16:05:32] $ServiceErrorClass$ = "None" <<< result true
[5] [15.09.2010 16:05:32] Then
[5] [15.09.2010 16:05:32] comment: Everything fine, we got the license key '12345-12345-12345-12345-12345'
#############################################################################
Jetzt habe ich maxInstallations auf 1 gesetzt um zu schauen was eine Überschreitung der Lizenzen bewirken würde,
da ich dann gerne einen Abbruch haben möchte und das Paket nicht installiert werden soll.
Dabei kommt folgendes Ergebnis:
#############################################################################
[5] [07.01.2000 11:56:53] Set $LicenseKey$ = demandLicenseKey ($LicensePool$)
[6] [07.01.2000 11:56:53] Calling opsi service at https://192.168.50.30:4447
[6] [07.01.2000 11:56:53] JSON service request https://192.168.50.30:4447/rpc getAndAssignSoftwareLicenseKey
[6] [07.01.2000 11:56:53] The value of the variable "$LicenseKey$" is now: ""
[5] [07.01.2000 11:56:53]
[5] [07.01.2000 11:56:53] Set $ServiceErrorClass$ = getLastServiceErrorClass
[6] [07.01.2000 11:56:53] The value of the variable "$ServiceErrorClass$" is now: "None"
[5] [07.01.2000 11:56:53] comment: Error class: None
[5] [07.01.2000 11:56:53]
[5] [07.01.2000 11:56:53] If
[5] [07.01.2000 11:56:53] $ServiceErrorClass$ = "None" <<< result true
[5] [07.01.2000 11:56:53] Then
[5] [07.01.2000 11:56:53] comment: Everything fine, we got the license key ' '
#############################################################################
Mache ich nun schon Grundsätzlich etwas verkehrt oder wie kann ich einen Abbruch an dieser Stelle bewirken?
Ich habe einen Lizenzpool erstellt aus dem sich die Clients ihren Lizenzschlüssel holen sollen.
Dieser wird auch ausgelesen.
#############################################################################
[5] [15.09.2010 16:05:32] Set $LicenseKey$ = demandLicenseKey ($LicensePool$)
[6] [15.09.2010 16:05:32] Calling opsi service at https://192.168.50.30:4447
[6] [15.09.2010 16:05:32] JSON service request https://192.168.50.30:4447/rpc getAndAssignSoftwareLicenseKey
[6] [15.09.2010 16:05:32] The value of the variable "$LicenseKey$" is now: "12345-12345-12345-12345-12345"
[5] [15.09.2010 16:05:32]
[5] [15.09.2010 16:05:32] Set $ServiceErrorClass$ = getLastServiceErrorClass
[6] [15.09.2010 16:05:32] The value of the variable "$ServiceErrorClass$" is now: "None"
[5] [15.09.2010 16:05:32] comment: Error class: None
[5] [15.09.2010 16:05:32]
[5] [15.09.2010 16:05:32] If
[5] [15.09.2010 16:05:32] $ServiceErrorClass$ = "None" <<< result true
[5] [15.09.2010 16:05:32] Then
[5] [15.09.2010 16:05:32] comment: Everything fine, we got the license key '12345-12345-12345-12345-12345'
#############################################################################
Jetzt habe ich maxInstallations auf 1 gesetzt um zu schauen was eine Überschreitung der Lizenzen bewirken würde,
da ich dann gerne einen Abbruch haben möchte und das Paket nicht installiert werden soll.
Dabei kommt folgendes Ergebnis:
#############################################################################
[5] [07.01.2000 11:56:53] Set $LicenseKey$ = demandLicenseKey ($LicensePool$)
[6] [07.01.2000 11:56:53] Calling opsi service at https://192.168.50.30:4447
[6] [07.01.2000 11:56:53] JSON service request https://192.168.50.30:4447/rpc getAndAssignSoftwareLicenseKey
[6] [07.01.2000 11:56:53] The value of the variable "$LicenseKey$" is now: ""
[5] [07.01.2000 11:56:53]
[5] [07.01.2000 11:56:53] Set $ServiceErrorClass$ = getLastServiceErrorClass
[6] [07.01.2000 11:56:53] The value of the variable "$ServiceErrorClass$" is now: "None"
[5] [07.01.2000 11:56:53] comment: Error class: None
[5] [07.01.2000 11:56:53]
[5] [07.01.2000 11:56:53] If
[5] [07.01.2000 11:56:53] $ServiceErrorClass$ = "None" <<< result true
[5] [07.01.2000 11:56:53] Then
[5] [07.01.2000 11:56:53] comment: Everything fine, we got the license key ' '
#############################################################################
Mache ich nun schon Grundsätzlich etwas verkehrt oder wie kann ich einen Abbruch an dieser Stelle bewirken?