Skip to content

js-openclient/heat/v1/stacks.js not handling error callback #34

Description

@aheifetz

In the file js-openclient/heat/v1/stacks.js

In the create function, it deletes the reference to the error callack:

if (params.error) delete params.error;

but later we call manager.safe_complete to handle the error:

this._super(params, function (err, result, xhr) {
if (err) return manager.safe_complete(err, null, null, params, callback);

However, safe_complete depends on params.error being a function to handle the callback.

Does the code need to delete the params.error ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions