Giter Site home page Giter Site logo

azure-img-utils's People

Contributors

apozsuse avatar grisu48 avatar rjschwei avatar smarlowucf avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

grisu48

azure-img-utils's Issues

Add force replace option for add image to offer method

Currently the code will replace an existing image version if a new one is added with same version string. Instead it would be helpful for the function to raise an error if the version already exists. Also, adding a force replace flag will allow the existing functionality to persist.

No disk generations causes key error

When attempting to add an image to a generation when the offer has no generations yet the key does not exist diskGenerations. This leads to a key error.

Installation repository doesn't work

The section in the README regarding the installation refers to a OBS project, which does not contain python3-azure-img-utils anymore:

$ zypper ar http://download.opensuse.org/repositories/Cloud:/Tools/<distribution>
$ zypper refresh
$ zypper in python3-azure-img-utils

Cloud:Tools doesn't contain python3-azure-img-utils but Cloud:Tools:CI does.

Improve user feedback about async operations

Current version of the Azure SDK does NOT provide a proper object with the result for an asynchronous operation.
In image deletion, the result object is always None, no matter if the image is actually deleted or not, so it's not possible to provide accurate info to the cli user in some error scenarios.

It might be good to check the issue again in the future to fix it.

Raise exception when notification_emails is none

This is required when publishing an offer. When the value provided by CLI or config is None raise an exception. Otherwise the Azure MP API provides an unhelpful message:

Unable to publish cloud partner offer
400 Client Error: Bad Request for url: https://cloudpartner.azure.com/api/publishers/suse/offers/sles-15-sp3-chost-byos/publish?api-version=2017-10-31

Add Gallery Image Functions

It would be nice to include the gallery image functions. This is another way to create custom compute images that allows for sharing the images with other users/accounts.

Move functionality into class methods

Where the class methods call utility functions with similar names the code can move to the class method and the utility can be dropped. For example AzureImage.create_compute_image calls create_image to do the actual image creation. This can be consolidated in the class. This solves the name clashing issue and leaves utils modules for functions that don't fit nicely in the class or to prevent duplication.

CLI tests failing

Tests fail on assertion in python3.6 and click 7.0:

assert "Missing option '--blob-name'" in result.output

Because the output is:

Missing option "--blob-name"

We shouldn't rely on output of " vs ' in tests as this could change based on the version of click and/or python.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.