threefoldtecharchive / jumpscaleX_core

Apache License 2.0
1 stars 6 forks source link

JSconfigClient delete does not work #742

Closed robvanmieghem closed 4 years ago

robvanmieghem commented 4 years ago

branch unstable 74d481c37541999655d71c0ee9af5efdf490338f A delete does not remove the instance but the properties have been reset to the defaults though

JSX> j.clients.stellar.new('test3',network='TEST')

## jumpscale.stellar.client
ID: 8
 - name                : test3
 - network             : TEST
 - address             : GDYSV5Y5GMGXJW4C662WFYC5LBKX54VTFBTKTA2B2P3K4LJ6DHJSOOXV
 - secret              : SBXABPDGDBQGRQUDZYICMSQQNHOQI2KAI27XPM3OMON6VOVMMBSVBE46
 - sequence            : 0
 - sequencedate        :

JSX> j.clients.stellar.test3.delete()
JSX> j.clients.stellar.new('test3',network='TEST')
Thu 16 07:13:13 SES/JSConfigsBCDB.py -  25 - new                                : EXCEPTION:
    cannot do new object, test3 exists
--TRACEBACK------------------
<stdin> in <module>
    1
/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfigsBCDB.py in new
    25    raise j.exceptions.Base(f"cannot do new object, {name} exists")
-----------------------------

Thu 16 07:13:13 SES/JSConfigsBCDB.py -  25 - new                                : EXCEPTION:
    cannot do new object, test3 exists
--TRACEBACK------------------
<stdin> in <module>
    1
/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfigsBCDB.py in new
    25    raise j.exceptions.Base(f"cannot do new object, {name} exists")
-----------------------------

cannot do new object, test3 exists
JSX> j.clients.stellar.delete('test3')
JSX> j.clients.stellar.new('test3',network='TEST')
Thu 16 07:13:46 SES/JSConfigsBCDB.py -  25 - new                                : EXCEPTION:
    cannot do new object, test3 exists
--TRACEBACK------------------
<stdin> in <module>
    1
/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfigsBCDB.py in new
    25    raise j.exceptions.Base(f"cannot do new object, {name} exists")
-----------------------------

Thu 16 07:13:46 SES/JSConfigsBCDB.py -  25 - new                                : EXCEPTION:
    cannot do new object, test3 exists
--TRACEBACK------------------
<stdin> in <module>
    1
/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfigsBCDB.py in new
    25    raise j.exceptions.Base(f"cannot do new object, {name} exists")
-----------------------------

cannot do new object, test3 exists

even after restarting the kosmos shell, the object is still there: Screenshot 2020-04-16 at 09 19 52

BolaNasr commented 4 years ago

Fixed at development branch image but still have problem after restarting the kosmos shell, the object is still there , i will investigate on it

AhmedHanafy725 commented 4 years ago

Verified Branch: development Commit: c57dec7d08f09e1d81fe6bbb4c568772865b7baa

image

image

image