Skip to main content
se añadieron 1331 caracteres en el cuerpo
Origen Enlace
 {
>     "images": [
>         {
>             "OS-EXT-IMG-SIZE:size": 13167616,
>             "created": "2021-07-13T09:35:56Z",
>             "id": "15f490a5-9b64-4315-a592-3933e91356a5",
>             "links": [
>                 {
>                     "href": "http://192.168.1.82:8774/v2.1/7d8fed2119e04ee79e15b5a2fac2f5da/images/15f490a5-9b64-4315-a592-3933e91356a5",
>                     "rel": "self"
>                 },
>                 {
>                     "href": "http://192.168.1.82:8774/7d8fed2119e04ee79e15b5a2fac2f5da/images/15f490a5-9b64-4315-a592-3933e91356a5",
>                     "rel": "bookmark"
>                 },
>                 {
>                     "href": "http://192.168.1.82:9292/images/15f490a5-9b64-4315-a592-3933e91356a5",
>                     "rel": "alternate",
>                     "type": "application/vnd.openstack.image"
>                 }
>             ],
>             "metadata": {},
>             "minDisk": 0,
>             "minRam": 0,
>             "name": "cirrios",
>             "progress": 100,
>             "status": "ACTIVE",
>             "updated": "2021-07-13T09:35:57Z"
>         },
>         {
>             "OS-EXT-IMG-SIZE:size": 1020264448,
>             "created": "2021-07-11T15:14:03Z",
>             "id": "ba417b6f-edde-4862-8425-6d3b1d545dcc",
>             "links": [
>                 {
>                     "href": "http://192.168.1.82:8774/v2.1/7d8fed2119e04ee79e15b5a2fac2f5da/images/ba417b6f-edde-4862-8425-6d3b1d545dcc",
>                     "rel": "self"
>                 },
>                 {
>                     "href": "http://192.168.1.82:8774/7d8fed2119e04ee79e15b5a2fac2f5da/images/ba417b6f-edde-4862-8425-6d3b1d545dcc",
>                     "rel": "bookmark"
>                 },
>                 {
>                     "href": "http://192.168.1.82:9292/images/ba417b6f-edde-4862-8425-6d3b1d545dcc",
>                     "rel": "alternate",
>                     "type": "application/vnd.openstack.image"
>                 }
>             ],
>             "metadata": {},
>             "minDisk": 0,
>             "minRam": 0,
>             "name": "centos",
>             "progress": 100,
>             "status": "ACTIVE",
>             "updated": "2021-07-11T15:14:22Z"
>         }
>     ]
> }
>


{
    "images": [
        {
            "OS-EXT-IMG-SIZE:size": 13167616,
            "created": "2021-07-13T09:35:56Z",
            "id": "15f490a5-9b64-4315-a592-3933e91356a5",
            "links": [
                {
                    "href": "http://192.168.1.82:8774/v2.1/7d8fed2119e04ee79e15b5a2fac2f5da/images/15f490a5-9b64-4315-a592-3933e91356a5",
                    "rel": "self"
                },
                {
                    "href": "http://192.168.1.82:8774/7d8fed2119e04ee79e15b5a2fac2f5da/images/15f490a5-9b64-4315-a592-3933e91356a5",
                    "rel": "bookmark"
                },
                {
                    "href": "http://192.168.1.82:9292/images/15f490a5-9b64-4315-a592-3933e91356a5",
                    "rel": "alternate",
                    "type": "application/vnd.openstack.image"
                }
            ],
            "metadata": {},
            "minDisk": 0,
            "minRam": 0,
            "name": "cirrios",
            "progress": 100,

 {
>     "images": [
>         {
>             "OS-EXT-IMG-SIZE:size": 13167616,
>             "created": "2021-07-13T09:35:56Z",
>             "id": "15f490a5-9b64-4315-a592-3933e91356a5",
>             "links": [
>                 {
>                     "href": "http://192.168.1.82:8774/v2.1/7d8fed2119e04ee79e15b5a2fac2f5da/images/15f490a5-9b64-4315-a592-3933e91356a5",
>                     "rel": "self"
>                 },
>                 {
>                     "href": "http://192.168.1.82:8774/7d8fed2119e04ee79e15b5a2fac2f5da/images/15f490a5-9b64-4315-a592-3933e91356a5",
>                     "rel": "bookmark"
>                 },
>                 {
>                     "href": "http://192.168.1.82:9292/images/15f490a5-9b64-4315-a592-3933e91356a5",
>                     "rel": "alternate",
>                     "type": "application/vnd.openstack.image"
>                 }
>             ],
>             "metadata": {},
>             "minDisk": 0,
>             "minRam": 0,
>             "name": "cirrios",
>             "progress": 100,
>             "status": "ACTIVE",
>             "updated": "2021-07-13T09:35:57Z"
>         },
>         {
>             "OS-EXT-IMG-SIZE:size": 1020264448,
>             "created": "2021-07-11T15:14:03Z",
>             "id": "ba417b6f-edde-4862-8425-6d3b1d545dcc",
>             "links": [
>                 {
>                     "href": "http://192.168.1.82:8774/v2.1/7d8fed2119e04ee79e15b5a2fac2f5da/images/ba417b6f-edde-4862-8425-6d3b1d545dcc",
>                     "rel": "self"
>                 },
>                 {
>                     "href": "http://192.168.1.82:8774/7d8fed2119e04ee79e15b5a2fac2f5da/images/ba417b6f-edde-4862-8425-6d3b1d545dcc",
>                     "rel": "bookmark"
>                 },
>                 {
>                     "href": "http://192.168.1.82:9292/images/ba417b6f-edde-4862-8425-6d3b1d545dcc",
>                     "rel": "alternate",
>                     "type": "application/vnd.openstack.image"
>                 }
>             ],
>             "metadata": {},
>             "minDisk": 0,
>             "minRam": 0,
>             "name": "centos",
>             "progress": 100,
>             "status": "ACTIVE",
>             "updated": "2021-07-11T15:14:22Z"
>         }
>     ]
> }
>


se añadieron 183 caracteres en el cuerpo
Origen Enlace

me da este error :

Traceback (most recent call last): File "openstack3.py", line 263, in value = json.dumps(float(dato['progress'])), KeyError: 'progress'

como tendría que declararlo para coger esos datos??

como tendría que declararlo para coger esos datos??

me da este error :

Traceback (most recent call last): File "openstack3.py", line 263, in value = json.dumps(float(dato['progress'])), KeyError: 'progress'

como tendría que declararlo para coger esos datos??

se añadieron 7 caracteres en el cuerpo
Origen Enlace

como podría llamarlotendría que declararlo para coger esos datos??

como podría llamarlo para coger esos datos??

como tendría que declararlo para coger esos datos??

Origen Enlace
Loading