Previous topic

The nova.common.memorycache Module

Next topic

The nova.compute.aggregate_states Module

This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Nova 2011.2 docs or all OpenStack docs too.

The nova.compat.flagfile Module

handle_flagfiles(args, tempdir=None)

Replace –flagfile arguments with –config-file arguments.

Replace any –flagfile argument in the supplied list with a –config-file argument containing a temporary config file with the contents of the flag file translated to .ini format.

The tempdir argument is a directory which will be used to create temporary files.

handle_flagfiles_managed(*args, **kwds)

A context manager for handle_flagfiles() which removes temp files.

For use with the ‘with’ statement, i.e.:

with handle_flagfiles_managed(args) as args:
     # Do stuff
# Any temporary fils have been removed