Bug 825214

Summary: incorrect variable is using in is_idled function.
Product: OKD Reporter: Johnny Liu <jialiu>
Component: ContainersAssignee: Rob Millner <rmillner>
Status: CLOSED DUPLICATE QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: medium    
Version: 2.xCC: mfisher
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-25 11:31:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Johnny Liu 2012-05-25 11:21:43 UTC
Description of problem:
In /usr/bin/rhc-idler:
<--snip-->
function is_idled {
    appid=$1

    HTTP_DIR=`dirname "/etc/httpd/conf.d/stickshift/${uuid}"*/00000_default.conf`

<--snip-->

"appid" and "uuid" should keep consistent.




Version-Release number of selected component (if applicable):
devenv_1802

How reproducible:
Always

Steps to Reproduce:
1. Create app, then idle it.
2. Run "rhc-idler -l" to check the idled app list.
3. 
  
Actual results:
# rhc-idler -l
dirname: extra operand `/etc/httpd/conf.d/stickshift/aa95127730c54af08225df07a380c359_jialiu_jenkins/00000_default.conf'
Try `dirname --help' for more information.
dirname: extra operand `/etc/httpd/conf.d/stickshift/aa95127730c54af08225df07a380c359_jialiu_jenkins/00000_default.conf'
Try `dirname --help' for more information.


Expected results:
rhc-idler should work fine.

Additional info:

Comment 1 Johnny Liu 2012-05-25 11:31:48 UTC

*** This bug has been marked as a duplicate of bug 825124 ***